Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

admin: the storage count is silently the last 24 hours, and the console renders it as the store's total #1322

Backlog

Description

@chappie-daemon

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

  1. added
    bug
    rewrite
    rust
    factory
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfactoryrewriterust

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions