groceries: stats page with nightly snapshot (battles, basket, promos, CPI, range)
All checks were successful
Deploy production / deploy (push) Successful in 1m19s

This commit is contained in:
2026-10-25 20:38:55 +00:00
parent c4397e9d59
commit a6ef263c7e
11 changed files with 35731 additions and 2 deletions

View File

@@ -167,8 +167,10 @@ try {
where n.nspname = 'groceries' and c.relkind = 'r'
`;
if (
Number(groceries.tables) !== 8 ||
Number(groceries.app_rw) !== 8 ||
// 10 = stores, items, item_prices, groups, import_runs, categories, manual_prices, synonyms,
// stats_snapshots, item_sizes (more is fine as long as the app can read/write all of them).
Number(groceries.tables) < 10 ||
Number(groceries.app_rw) !== Number(groceries.tables) ||
Number(groceries.ro_read) !== 0 ||
groceries.public_usage
)