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
{{ message }}
Repository navigation
admin: the storage count is silently the last 24 hours, and the console renders it as the store's total #1322
Found by job 045's ux lens (row 5 of #868) at 8488bf13.
With since/until absent, crates/nostream-admin/src/utils/storage.rs:63-66 counts the last 86,400 s (DEFAULT_WINDOW_SECONDS); the reply carries since/until (crates/nostream-admin/src/controllers/get_ops_storage_counts.rs:88-92) and the console renders neither — renderStorage prints only kinds and count (resources/admin/assets/admin-ops.js:160-174) under a column headed "Count", while the page calls the bounds "optional since/until unix seconds" (resources/admin/assets/dashboard.html:317).
Evidence
sed -n '65p' crates/nostream-admin/src/utils/storage.rs → let effective_since = since.unwrap_or(effective_until - DEFAULT_WINDOW_SECONDS);
What a fix changes
Show the window actually used from the reply (and say "last 24 h" when it was defaulted), or require both bounds. An operator asking "how many kind-1 events do I have?" gets a 24-hour number as if it were the store's total.
Acceptance
The console shows the reply's since/until beside the count.
A defaulted request is labelled with its window.
Record: docs/rewrite/reviews/2026-11-30-relay-storage.md — finding F30, lens ux, tree 8488bf13.
Activity