Skip to content

bug(platform): Automation metrics turn a failed read into a zero-run dashboard #3869

Closed

Description

@yannickmonney

Bug: Automation metrics turn a failed read into a zero-run dashboard

  • Classification: P2 confirmed product defect (Analytics / Automations)
  • Source SHA: 9ea5972
  • Replay: /Users/yannick/.codex/notes/tale-1000-additional/analytics-metrics-read-errors-probe.log
  • 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.

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