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: Audit activity summary turns a failed read into zero totals #3855
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
Open the Audit logs Activity logs tab.
Let audit_logs/queries:getActivitySummary settle with HTTP 503 after loading ends.
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.
Probe assertion: one Vitest test passed with data: undefined, isLoading:false, isError:true; zero totals and normal empty breakdowns appeared without alert/retry.
Activity