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): Automation metrics turn a failed read into a zero-run dashboard #3869
Scope: isolated local jsdom/Vitest component probe; no production network or writes.
Reproduction
Render AutomationMetricsPage for an organization while automations/queries:getOrgAutomationMetrics settles with data: undefined, isLoading: false, and a 503 error. The real page renders Automation metrics, zero summary cards, an empty status chart, and the No automation runs teaching panel. It renders no error state and no Retry action. The combined replay passed the Automation case against source SHA 9ea59724df24d62729a9360f3902d964dab39b3e.
Root cause and impact
The container passes data and isLoading into AutomationMetricsPageView without consuming the query error. The view uses data?.summary, an empty series, and an empty top-automation list, so a failed read is coerced into the same values as a successful zero-run period. The dashboard can falsely reassure operators about automation health and provides no recovery action.
Expected behavior is a distinct failed-read alert with a retry that repeats the same period query; the empty-run copy should only appear after a successful response that reports no runs. This is independent of the automation editor/run-detail read failures because it is the organization-level analytics query.
Activity