Repository navigation
Refresh folder and bucket usage on demand with optional event-driven updates - #70
Conversation
Signed-off-by: Bret Piatt <[email protected]>
Signed-off-by: Bret Piatt <[email protected]>
Signed-off-by: Bret Piatt <[email protected]>
Signed-off-by: Bret Piatt <[email protected]>
Signed-off-by: Bret Piatt <[email protected]>
Vonng
left a comment
There was a problem hiding this comment.
Useful feature, but three reproduced correctness problems need fixes before merge (inline). go test ./..., go test -race ./api ./pkg/usage, and the existing focused PostgreSQL queue/scan/observer/health tests pass. Two added PostgreSQL regression checks and one Chromium refresh regression fail on this head. CI currently awaits maintainer approval.
Please retain these regression cases and add the integration-tagged PostgreSQL suite to CI. The new operator guide belongs in the companion documentation site, with a canonical link here, per CONTRIBUTING.md.
|
Additional validation on the same d47e654 head: the complete |
…age scans Preserve PR #70's original commits and incorporate the reviewed creation, quota, formatting and usage reliability fixes. Validated final head 08fcde6: Required matrix and Vulnerability Check passed, including 824 Playwright tests and 8 group-permission regressions. Signed-off-by: Feng Ruohang <[email protected]>
|
Integrated into Follow-up fixes preserve full-scan deadlines across checkpoints, renew observer leases during slow reconciliation, and retain completed foreground totals across transient failures while clearing inaccessible data. The three review threads now contain the regression evidence and are resolved. The final required workflow and vulnerability check passed, including PostgreSQL/native SILO race tests, 824 Playwright tests and 8 additional group-permission regressions. The canonical usage guide is published in English and Chinese, and contributor credit is included. These changes are merged source for the next release; this merge does not publish a new Console binary or image. |
Folder prefixes have no stored size, and server scanner snapshots can lag behind object changes. Add fresh metadata scans to Refresh, visible progress and completion times, and separate current-object and retained-version totals.
The folder browser supports recursive NDJSON scans, per-folder calculation, cancellation and disconnect cleanup. Current and retained bytes, version counts and delete markers remain distinct; partial, failed or limited scans never become completed zero totals. Decimal-string bytes preserve precision, including sorting above JavaScript’s safe integer range.
Optionally run
console usage-workerwith PostgreSQL for durable bucket refresh and automatic updates. S3 mutation notifications invalidate only affected buckets. Repeated events coalesce into priority work, leased workers resume at whole-key/version boundaries, and changes during a scan request a follow-up generation. Frequent inventory discovery leaves unchanged buckets alone; startup/reconnect and independently configured full reconciliation repair gaps in the non-replayable live stream. Without the database, Refresh uses bounded foreground scans and clearly marks automatic updates as unconfigured.The worker uses a dedicated metadata-list/notification identity with no object reads, writes or administrative privileges. Browser requests independently check the signed-in caller’s root and version-list requests before exposing cached aggregates. Readiness includes event coverage and reconciliation; internal metrics report queue age, failure/limit states and observer health. Budgets, concurrency, lease/retry intervals and polling are configurable. See
docs/FolderSizes.mdfor the API, permissions, limitations and setup.Validation:
Source changes and regenerated optimized embedded GUI assets are separate DCO-signed commits. Existing licenses/notices remain intact. No deployment configuration, credentials or operator data is included.