Skip to content

bug(platform): External Turns metrics turn a failed read into an empty SLO dashboard #3868

Closed

Description

@yannickmonney

Bug: External Turns metrics turn a failed read into an empty SLO dashboard

  • Classification: P2 confirmed product defect (Analytics / External Turns)
  • 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 ExternalTurnMetricsPage for an organization while sandbox/session_queries_public:getExternalTurnMetrics settles with data: undefined, isLoading: false, and a 503 error. The actual page renders the normal Harness turns dashboard, zero/blank SLO cards, and the success copy No harness turns have run in the selected period. There is no alert, error message, or Retry action. The combined replay passed the External Turns case against source SHA 9ea59724df24d62729a9360f3902d964dab39b3e.

Root cause and impact

The container destructures only data and isLoading, then passes data ?? undefined into a view that defaults every metric to zero, an em dash, or an empty byHarness array. A rejected metrics query therefore looks exactly like a successful period with no sandbox traffic. Operators may interpret missing reliability data as healthy absence and have no way to retry without leaving or remounting the page.

Expected behavior is an explicit failed-read state with retry and preservation of the selected period. The empty-period teaching copy should be reserved for a successful response with no turns.

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