Repository navigation
fix: release validation for usage scans, bucket creation, quotas and bucket UI - #80
Merged
Merged
Conversation
A limited or failed scan keeps its checkpoint so automatic retries do not restart an over-budget listing. That checkpoint carries the original scan deadline, so every later explicit Refresh resumed it and immediately ended limited again; the documented "Refresh requests a new metadata scan" never happened. An explicit refresh now discards the checkpoint and partial progress and starts a fresh scan with a fresh budget. Events and reconciliation still leave limited jobs alone. SILO drops notifications for a subscriber that stops reading, without ending the stream. The observer read events on the same loop that runs reconciliation and database flushes, so a slow inventory could lose changes while coverage reported a reconciled connection. Read the stream on its own goroutine into one pending invalidation per bucket. Both regression tests fail on the previous implementation. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Feng Ruohang <[email protected]>
Object locking cannot exclude prefixes or folders from versioning. The creation handler silently dropped the exclusions and created a bucket with a different configuration than requested. Reject the combination before any bucket is created. Cover rollback boundaries against a fake S3/admin backend: an existing bucket is never removed, a bucket that became non-empty is reported as possibly remaining, and a browser disconnect after creation still rolls back with an independent context. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Feng Ruohang <[email protected]>
Quota editor: - set the loading state before writing, so repeated submits send one PUT; - explain why an existing quota of 8 PiB or more is not editable instead of showing the generic input error over an empty field; - offer the same unit list in both quota forms and drop "Ei", where even 0.01 Ei exceeds the exact JSON integer range and can never be written. Byte formatting: - niceBytes now uses calculateBytes' parser, so blank, null, hexadecimal and negative input is N/A in both Console and MDS instead of "0 B" or "16 B"; - both helpers carry a value that rounds up to the next unit, so 1048575 bytes is 1.0 MiB rather than 1024.0 KiB. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Feng Ruohang <[email protected]>
- Validate saved observations before exact sorting and formatting; a malformed byte string is now unknown rather than a BigInt crash. - Keep the current totals already shown when a bucket is only temporarily unavailable. Retained data is dropped until version listing is authorized again; forbidden and missing still clear everything. - A bucket-list change restarts the usage effect. An explicit Refresh that had not been delivered is now carried into the next run instead of being silently dropped, and foreground rows no longer stay "running" after their scan was aborted. Each regression test fails against the previous hook. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Feng Ruohang <[email protected]>
Visual review at 1440, 1024, 768 and 390 px in light/dark, en/zh, with 1000+ buckets, found: - the name cell wrapper defeated the cell ellipsis, hard-clipping long bucket names; the name is now its own ellipsized line with a title; - the header row inherited the 64 px two-line row height; - renaming "Size" to "Current size" pushed the sort arrow out of the clipped header, so a size sort showed no direction; - status and retained lines used ad-hoc inline styles in foreground color; they now share one muted caption style that never wraps; - the retained line clipped mid-value in narrow size columns; the size track is wider at every breakpoint; - card metrics were sized by content and shifted between cards; - times used the browser locale in the Chinese UI, the retained label hardcoded an ASCII colon and the notice joined Chinese sentences with a space; - the folder-size panel drew a second bordered box inside the listing card, used a raw checkbox and browser-locale numbers, and appeared in empty folders; - on phones with touch-sized controls the bucket toolbar overflowed and scrolled the page sideways; the primary action now wraps instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Feng Ruohang <[email protected]>
At 1440, 1024, 768 and 390 px (coarse pointer on phones), a size-sorted table must show the descending arrow inside its header, ellipsize a 63-character bucket name with its full title, show "Retained: 9.5 MiB" unclipped, keep the header shorter than two-line body rows and never scroll the page sideways. All four cases fail on the previous build. Keep the folder-size panel while a listing loads, so rows do not jump when the panel appears; it is hidden only once the folder is empty. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Feng Ruohang <[email protected]>
Production build (yarn build + optimize-embed.sh) with Node 24.22.1 and Yarn 4.13.0 from the fixes on this branch. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Feng Ruohang <[email protected]>
Vonng
added a commit
to pgsty/silo.pgsty.com
that referenced
this pull request
Nov 4, 2026
…nd locked exclusions Document Console usage-scan Refresh after a limit and the locked-bucket versioning-exclusion rejection from pgsty/silo-console#80 (EN/ZH).
- Inline the Chinese locale choice in BucketUsageStatus, following the rest of the code base; the exported helper had no other user and failed the knip dead-code check in CI. - Release the observer lease before waiting for the event reader. The SDK's reconnect backoff sleeps up to 30 s without watching the context, so waiting first could hold the lease and delay a replacement observer. - Show the folder-size panel even when the current listing is empty, as before: a versioned folder whose objects were all deleted still holds retained bytes that only this panel can calculate. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Feng Ruohang <[email protected]>
Production build (yarn build + optimize-embed.sh) with Node 24.22.1 and Yarn 4.13.0. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Feng Ruohang <[email protected]>
CI's Linux runner has no Inter, so Chromium falls back to DejaVu Sans for system-ui. There "Retained: 9.5 MiB" is about 108 px and overflowed the 101-104 px size column at 1440, 768 and 390 px; the new layout test caught it. Users without Inter or SF see the same clipping. - Give the size column a font-relative minimum (15ch), so it grows with wider glyphs instead of being tuned to one platform's font. - Let the retained caption wrap between its label and value as a last resort; the value itself never splits or clips. - Apply the header's semibold weight to its cells rather than the grid row, so ch-based tracks resolve against the same font as body rows and columns stay aligned. The layout test now runs every width with the default font and with a forced wide font (Verdana, close to DejaVu Sans metrics), and also checks header/body column alignment. With Verdana forced, the previous build clips at exactly the three widths that failed in CI. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Feng Ruohang <[email protected]>
Production build (yarn build + optimize-embed.sh) with Node 24.22.1 and Yarn 4.13.0. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Feng Ruohang <[email protected]>
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution Licensing (no CLA, inbound=outbound, DCO required)
This pull request contributes to PGSTY SILO Console (
pgsty/silo-console).Code contributions are accepted under
GNU AGPL v3.0 or later
(
AGPL-3.0-or-later), the same license as SILO Console.By submitting this pull request I represent that I have the right to contribute
the changes under that license and retain copyright in my original work.
No CLA, copyright assignment, or separate Apache-2.0 license grant is required.
Existing copyright and license notices remain intact; separately licensed
material keeps its applicable terms. Every commit must carry a DCO
Signed-off-bytrailer (git commit -s); seeCONTRIBUTING.md.
Description and motivation
Pre-release validation of
mainafter #79 (5175e5c). This re-checks the #75–#78 and #70 fixes against the current code and fixes the new problems it found.Usage worker
limitedscan. A limited or failed job keeps its checkpoint, and that checkpoint carries the original scan deadline. Every explicit Refresh resumed it and endedlimitedagain without listing anything. An explicit refresh now discards the checkpoint and partial progress and starts a fresh scan with a new budget. Automatic retries, events and reconciliation still leave limited jobs alone, so over-budget buckets are not re-listed continuously.pubsub.Publishsilently drops notifications for a subscriber that stops reading, without ending the stream. The observer read events on the same loop that runs reconciliation and database flushes. The stream is now read on its own goroutine into one pending invalidation per bucket.Bucket creation
Quota and byte formatting
niceBytesnow uses the MDScalculateBytesparser.null, blank, hexadecimal and negative input is N/A, not "0 B" or "16 B".Bucket list usage
UI (reviewed at 1440/1024/768/390 px, light/dark, en/zh, with 1000+ buckets)
Validation
Run locally against SILO built from current
pgsty/silomain and PostgreSQL 18, with Node 24.22.1 and Yarn 4.13.0:go test ./...go test -race -p 1 -tags=integration,storageintegration ./pkg/usage ./api -count=1 -timeout=10mmake verifiersgit diff --checkyarn typecheck,yarn exec prettier . --check--project=unit--project=chromium(Console + usage worker + 4-drive SILO)yarn check:bundleEach new regression test was run against the previous implementation and fails there:
origin/mainConsole build.The layout test runs every width with the default font and with a forced wide font (Verdana, close to the DejaVu Sans that Chromium uses for
system-uion Ubuntu). An earlier CI run caught "Retained: 9.5 MiB" overflowing on Linux fonts. The size column now has a font-relative minimum (15ch), and the retained line may wrap between label and value; the value never clips.Follow-up after an independent adversarial review:
main.web-app/buildis a production rebuild (make build-static).Compatibility and documentation impact
POST /api/v1/bucketsnow returns 400 for locking/retention plus versioning exclusions. That configuration was previously accepted and silently changed. No schema or wire changes otherwise; the int64 quota API is unchanged.error/limitedbucket now clears its checkpoint and progress.Checklist
git commit -s) per the DCO🤖 Generated with Claude Code