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): Retention settings hide a failed pending-change read #3875
Scope: isolated local jsdom/Vitest component probe; no production network or writes.
Reproduction
Render RetentionPendingBanner while governance/queries:getPendingRetentionChange settles with data: undefined, isLoading: false, and a 503 error. The real component renders an empty fragment: there is no warning banner, no pending-change summary, no error alert, and no Retry action. The probe passed one test against source SHA 9ea59724df24d62729a9360f3902d964dab39b3e.
Root cause and impact
The component branches only on if (!pending.data) return null and never consumes the query error or retry function. A failed read is therefore indistinguishable from an organization with no scheduled retention reduction. Administrators can miss an upcoming destructive retention change and lose the visible Cancel action that is the only in-context way to stop it; changing pages or refreshing is the only implicit recovery.
Expected behavior is to preserve the empty state only for a successful null response and show a destructive/read-error banner with Retry when the pending-change query fails. This is distinct from cancellation mutation failures, which the component already toasts after a visible banner exists.
Activity