Skip to content

Bug: Audit activity summary turns a failed read into zero totals #3855

Closed

Description

@yannickmonney

Finding

Audit activity summary turns a failed read into zero totals

Impact

Settings → Audit logs → Activity logs can show zero actions, successes, failures, and denied events after the activity-summary request fails. During an incident, an administrator may read this as a clean period; the category and actor panels also say there was no activity, with no indication that the data is unavailable.

Reproduction

  1. Open the Audit logs Activity logs tab.
  2. Let audit_logs/queries:getActivitySummary settle with HTTP 503 after loading ends.
  3. Inspect the cards and breakdown panels.

Actual result: all four totals render 0; both breakdowns render “No activity in this period.”; no error or Retry/Try again/Reload control is shown.

Expected result: render a summary read-failure state with Retry and preserve cached values during refetch. Reserve zero/empty copy for successful responses.

Root cause and scope

At current origin 9ea59724df24d62729a9360f3902d964dab39b3e, services/platform/app/features/settings/audit-logs/components/activity-log-view.tsx:250-252 destructures only data and isLoading from useActivitySummary. ActivityLogViewInner at :108-168 uses summary?.… ?? 0/[] for all cards and panels, with no isError, error, or refetch branch.

Evidence

  • Probe: /Users/yannick/.codex/notes/tale-1000-additional/settings-next/activity-summary-read-error.probe.test.tsx
  • Replay: /Users/yannick/.codex/notes/tale-1000-additional/settings-next/activity-summary-read-error.replay.log
  • Probe assertion: one Vitest test passed with data: undefined, isLoading:false, isError:true; zero totals and normal empty breakdowns appeared without alert/retry.
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