Skip to content

bug(platform): audit logs, integrity status, erasure requests and guardrail cards say "nothing there" when their read fails #4834

Closed

Description

@yannickmonney

Problem

Four governance views state something false when their read fails, and none offers Try again. Paths are under services/platform/app/features/settings/ at main acd5dbd10.

# View Code What an admin is told
1 Logs › Audit and Errors tables audit-logs/components/audit-log-table.tsx:163-173 gives useListPage a paginated source (results, status, loadMore, isLoading) without error or retry. A failed first page reads as "Exhausted", the same mechanism as #4665. The page uses the listing's error only to disable the filters "No audit logs — Audit logs will appear here as actions are performed in your organization." (Errors tab: "No error logs"). A compliance reviewer is told the trail is empty
2 Logs › integrity panel audit-logs/components/audit-integrity-panel.tsx:54, :71, :91-96: once loading ends with no data, s == null renders logs.integrity.neverChecked "No automated integrity check has run yet." A failed status read also hides any tamper alert the status carries
3 Data subject requests list governance/data-subject-requests/requests-list-section.tsx:55 reads error but uses it only to disable the filter bar (:197). The DataTable (:216-254) gets no error, so a failed first page falls to its empty state "No erasure requests yet — File a request from the action above to record an Art. 17 receipt." An admin may file a duplicate erasure
4 Guardrails overview cards governance/components/guardrails-overview.tsx:127-134 keeps only data/isLoading from three useGovernancePolicy reads; policyEnabled(undefined) (:136, :165, :176) is false The cards show their off state for PII detection, content safety and the moderation provider. That contradicts the read-failure alerts further down the page

Rows 1 and 3 share the class #4665 fixed nowhere else: a paginated read whose failure becomes an empty state.

Expected

  • (1) and (3): pass the paginated source's error and retry to useListPage/DataTable, so a failed first page shows an error with Try again, and a failed later page shows the same with the rows kept.
  • (2): distinguish "never checked" from "couldn't load the status" and offer a retry.
  • (4): show an unknown state on the cards when their read failed.
  • Regression: a component test per view where the first read fails. It must not render the empty or off copy, and must recover with Try again. On acd5dbd10 all four render it.

Severity and owner

Activity

  1. yannickmonney commented on Oct 12, 2026

    @yannickmonney
    ContributorAuthor

    Addendum (Review A, TALE-358, 2026-10-12 16:15 Zurich occurrence): two more governance views fail the same way, at main 4cde0834a. Paths are under services/platform/.

    # View Code What an admin is told
    5 Data subject requests › File request, when a legal hold blocks the erasure By design, LEGAL_HOLD_BLOCKS_ERASURE doesn't toast. The dialog stores the request id and returns (app/features/settings/governance/data-subject-requests/file-request-dialog.tsx:163-170) and leaves the explanation to LegalHoldBlockPanel (:283-287). The panel hydrates through getErasureRequest and renders null while that read loads and when it fails (legal-hold-block-panel.tsx:31-33) Nothing. The confirm button seems to do nothing: no toast, no panel, and the mapped sentence dataSubjectRequests.errors.legalHoldBlocked (data-subject-requests-errors.ts:78-82) is never shown. The admin isn't told a hold blocked the erasure, so they may retry or assume the erasure was filed
    6 Guardrails › Content safety › moderation API key app/features/settings/governance/components/moderation-api-key-panel.tsx:24-25 keeps only data and isLoading; a failed status read shows apiKeyNotConfigured and the Set key button (:96-108). Separately, the backend sends an undecryptable key as the English literal '•••• (key rotated — re-save)' (backend/domains/governance/settings-tail.ts:810-815), which the panel prints verbatim "Not configured" for a key that exists. The admin may set it again or conclude moderation is off. In German and French, a rotated key shows the English instruction

    Expected:

    Regression:

    This is static reading, verified at the cited lines. I didn't run it.

  2. yannickmonney commented on Oct 12, 2026

    @yannickmonney
    ContributorAuthor

    Addendum 2 (Review A, TALE-358, 2026-10-12 20:15 Zurich occurrence): two more governance reads that state a cause they don't know. main c94f1fd84, paths under services/platform/app/features/settings/.

    # View Code What an admin is told
    7 Logs: opening an audit entry from a deep link (for example, the integrity panel's broken row) When the entry isn't on the loaded page, audit-logs/components/audit-log-table.tsx:85-88 fetches it by id. Once that read stops loading, any outcome without data, including a failed read, raises logs.integrity.rowMissing (:101-108) "Audit entry {logId} is no longer available." A network or server failure reads as a missing entry, in the very view used to investigate tampering, and there's no Try again
    8 Data subject requests: request drawer The error state has a Retry, but its text names two causes for any failure (governance/data-subject-requests/request-detail-drawer.tsx:128-151; dataSubjectRequests.drawer.errorState.description) "The receipt may have been deleted, or you may not have access to it.", even when the read just timed out. This one is low

    Expected:

    Regression: an audit-log table test whose getAuditLogById rejects. The toast must not say "no longer available". On c94f1fd84 it does.

    This is static reading, verified at the cited lines. I didn't run it.

  3. added
    agent-ready
    on Oct 29, 2026
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

    agent-readybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions