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
bug(platform): Sandbox quota settings hide a failed allocation read as unavailable usage #3877
Scope: isolated local jsdom/Vitest component probe; no production network or writes.
Reproduction
Render SandboxQuotaEditor while sandbox/session_queries_public:getSandboxQuotaUsage settles with data: undefined, isLoading: false, and a 503 error, with deployment capacity otherwise available. The actual editor shows Allocation data unavailable under all three fields, disables the fieldset, and renders no error alert or Retry control. The probe passed one test against source SHA 9ea59724df24d62729a9360f3902d964dab39b3e.
Root cause and impact
The editor computes savedConfig from usage.data and intentionally leaves it undefined when rows are missing, but it never consumes usage.isError, usage.error, or a retry function. The form consequently looks like a stable unavailable-allocation state rather than a failed request, and the grouped Save editor is not registered. Administrators cannot tell whether the quota configuration is absent, temporarily unreadable, or recoverable; a transient backend outage removes the editable controls with no recovery path.
Expected behavior is to distinguish a successful incomplete/absent usage response from a failed read, show the query error with Retry, and keep the editor disabled until the saved configuration can be fetched. This is distinct from deployment-capacity unavailability, which is surfaced separately by the existing capacity guard.
Activity