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
fix: tenant as string, rewrite tests for new API, audit fixes
- Change tenant type from ?int to ?string everywhere (Adapter, Usage,
ClickHouse, Database, Metric)
- ClickHouse tenant column: Nullable(String) instead of Nullable(UInt64)
- Fix tenant key mismatch: validateMetricsBatch now checks '$tenant'
matching resolveTenantFromMetric
- Fix MV GROUP BY: conditional on sharedTables (no tenant column when
sharedTables=false)
- Fix billing/daily target tables: conditional tenant column and ORDER BY
- Add collect() validation: empty metric name and negative value checks
- Fix ltrim() misuse in buildWhereClause: getTenantFilter now returns
bare condition without ' AND ' prefix
- Fix SQL.php: replace 'Audit' references with 'Usage', remove unused
Database import
- Fix parseQueries: use Int64 param type for value attribute instead of
String
- Rewrite all tests (UsageBase, ClickHouseTest, MetricTest) for new API:
replace increment/set/period-based methods with addBatch/collect/
getTotal/getTotalBatch/getTimeSeries
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments