You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: extract tenantstore and simplify models package (#666)
* refactor: create tenantstore driver interface, drivertest, and memtenantstore
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor: create redistenantstore - Redis driver.TenantStore implementation
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor: split drivertest into conformance and ListTenant suites
Separate RunConformanceTests (CRUD, destination listing, match, misc)
from RunListTenantTests (enrichment, excludes deleted, input validation,
keyset pagination, pagination suite). ListTenant tests now only run on
RediSearch backends (Redis Stack, Dragonfly Stack) instead of skipping
at runtime. Pagination suite moved from standalone redistenantstore test
into the drivertest framework.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor: create tenantstore facade and update all consumers
Add tenantstore/tenantstore.go facade following the logstore pattern
with type aliases, re-exported error sentinels, and a Config-based
constructor. Update all consumers from models.EntityStore to
tenantstore.TenantStore across services, apirouter, publishmq, and
deliverymq packages.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor: clean up models/ and remove all EntityStore references
Delete moved code from models/ (entity.go, encryption.go and their
tests), remove parseRedisHash/parseTimestamp methods from tenant.go
and destination.go. Rename EntityStore to MockStore in
destinationmockserver, and rename entityStore to tenantStore across
apirouter, publishmq, deliverymq, telemetry, and config.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor: simplify internal/models pkg
* chore: gofmt
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments