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
- ClickHouse tests construct with namespace/sharedTables and use a
ScopedClickHouse test helper that supplies a default tenant to writes
(per-row) and reads (per-call), so the existing call sites exercise the
real tenant code paths without threading tenant through each one.
- Rewrote the per-row tenant-override test to use the new API directly
(addBatch with $tenant on the row, find/purge with an explicit tenant).
- Reflection helpers target the parent ClickHouse class so they resolve
private members through the test subclass.
Also fixes a purge regression surfaced by the migration: with tenant now an
explicit query filter, purgeDaily treated a tenant scope as a daily-safe
narrowing filter, so a path-only purge fell through to
`DELETE FROM daily WHERE tenant=X` and wiped the tenant's unrelated daily
rows. Tenant is now excluded from the compatibility / no-op decision and
re-attached only to the final scoped delete.
246 tests green, PHPStan max + Pint clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments