Skip to content

bug(platform): Retention settings hide a failed pending-change read #3875

Closed

Description

@yannickmonney

Bug: Retention settings hide a failed pending-change read

  • Classification: P2 confirmed product defect (Governance / Retention)
  • Source SHA: 9ea5972
  • Replay: /Users/yannick/.codex/notes/tale-1000-additional/retention-pending-read-error-probe.log
  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions