Repository navigation
Fix bucket quota and replication numeric handling; update vulnerable URI decoder - #74
Merged
Merged
Conversation
Reuse the Summary quota normalization for bucket-list responses: prefer a positive Size and otherwise fall back to the legacy Quota field. Preserve quota writes, response schemas, type and nil/empty serialization. Add handler JSON regressions covering modern and legacy quotas, conflicting fields, empty/zero values, and nil quota/details. Refs #72 Signed-off-by: Feng Ruohang <[email protected]>
Use a reversible editor value with a byte fallback and skip unchanged writes. Validate enabled input before conversion, reject negative API amounts, and preserve existing zero and disabled quota semantics. Cover real form submissions, unit changes, fractional inputs and SDK quota requests with regression tests. Signed-off-by: Feng Ruohang <[email protected]>
Require a positive int32 validity in the form and reject nonpositive values before the API uint conversion. Default only absent configuration to one, while leaving server policy limits and existing mode/unit behavior intact. Cover real form submits and backend conversion boundaries. Signed-off-by: Feng Ruohang <[email protected]>
Describe the existing increase queries as requests and errors over the preceding four minutes in English and Chinese. Preserve panel IDs, queries, time windows and raw series. Exercise the actual Prometheus request path at multiple graph steps to guard those contracts. Signed-off-by: Feng Ruohang <[email protected]>
Use the existing bounded-precision formatter only for the syscall panel. Cover small rates and unchanged raw series, CPU formatting and file-descriptor counts. Signed-off-by: Feng Ruohang <[email protected]>
Read decimal and exponent values without parseInt truncation, report invalid/nonfinite data as unavailable and stop at the last supported unit. Retain real zero, binary units, existing rounding and numeric chart-tick inputs. Add regression coverage for each boundary. Signed-off-by: Feng Ruohang <[email protected]>
Reject unsupported quota values before building the create request, preserve fractional byte conversions, and revalidate unit changes. Cover the create thunk and existing quota editor with regression tests. Refs: #73 Signed-off-by: Feng Ruohang <[email protected]>
Require a positive integer within the signed int32 range for bucket creation and share the boundary with the existing retention editor. Cover rejected values and the upper boundary in the create request harness. Refs: #73 Signed-off-by: Feng Ruohang <[email protected]>
Signed-off-by: Feng Ruohang <[email protected]>
Signed-off-by: Feng Ruohang <[email protected]>
Signed-off-by: Feng Ruohang <[email protected]>
Signed-off-by: Feng Ruohang <[email protected]>
This was referenced Nov 4, 2026
Signed-off-by: Feng Ruohang <[email protected]>
Member
Author
|
Validated final head The broader review also found two independent backend creation error paths, now tracked with real reproductions in #77 and #78. Those are outside this numeric-form/display repair. |
This was referenced Nov 4, 2026
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.
Bucket quotas set through the Console now remain visible in the bucket list, and quota/retention forms validate complete numeric inputs before creating or updating a bucket. List and detail handlers use the same modern
size/ legacyquotaprecedence. Unchanged quota edits avoid rewriting rounded display values; invalid quota and nonpositive retention inputs are rejected before conversion.All three replication forms now share bandwidth validation:
1000 Eican no longer become1byte/s through exponent-prefix parsing, fractional scalars work, zero remains unlimited, unit changes revalidate, and synchronous replication ignores the hidden limit. Browser bandwidth writes stay within the exact integer range; the backend also rejects negative limits. Dashboard fixes preserve fractional syscall rates, label API requests as four-minute counts, and parse complete byte strings with bounded display units.The development-only
decode-uri-componentresolution is updated to 0.5.1 for GHSA-qr28-fpjm-wq7f. Production and high-severity dependency audits pass without additional exceptions. Source changes and optimized embedded GUI assets are separate DCO-signed commits.Validation:
go test ./...,make verifiers, immutable Yarn install, TypeScript checking, all 689 frontend unit/browser-harness tests (including all three replication forms), Prettier, dead-code checks, production warning check, and bundle budgets pass. Initial Login JavaScript is 237.89 KB gzip against the 259 KB gate. Exact int64 quota precision and remainingcalculateBytesbehavior are tracked separately in #75 and #76.This changes Console source and embedded assets. No release, container publication, deployment, or SILO Server dependency update is included; embedded Server delivery requires that separate step.
Fixes #72.
Fixes #73.