Skip to content

fix: dashboard: mapTimingPhases does not sort timing phase buckets chronologically (oldest -> newest) - #2989

Closed
ahmed-aneem wants to merge 1 commit into
openstatusHQ:mainfrom
ahmed-aneem:fix/bounty-2987-dashboard-maptimingphases-does-871l
Closed

ahmed-aneem wants to merge 1 commit into
openstatusHQ:mainfrom
ahmed-aneem:fix/bounty-2987-dashboard-maptimingphases-does-871l

Conversation

@ahmed-aneem

Copy link
Copy Markdown

Description

Fixes #2987

In mapTimingPhases (apps/dashboard/src/data/metrics.client.ts), Tinybird metric rows were mapped directly without sorting, which caused timing phases charts to render buckets in reverse or inconsistent order whenever the pipe returned rows descending.

Changes

  • Sort [...(timingPhases.data ?? [])] ascending by timestamp (oldest -> newest) before mapping in mapTimingPhases, matching mapLatency.
  • Tested with unit tests verifying chronological sorting and safe handling of empty/null inputs.

@vercel
vercel Bot temporarily deployed to Preview – openstatus-web October 25, 2026 06:02 Inactive
@vercel

vercel Bot commented Oct 25, 2026

Copy link
Copy Markdown

@ahmed-aneem is attempting to deploy a commit to the OpenStatus Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
vercel Bot temporarily deployed to Preview – openstatus-status-page October 25, 2026 06:02 Inactive
@vercel

vercel Bot commented Oct 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated
openstatus-status-page Skipped Skipped Oct 25, 2026 6:02am UTC
openstatus-web Skipped Skipped Oct 25, 2026 6:02am UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

View guided diff | Re-trigger cubic

@mxkaske

mxkaske commented Nov 6, 2026

Copy link
Copy Markdown
Member

already fixed in #2988

@mxkaske mxkaske closed this Nov 6, 2026

This branch was previously deployed

2 inactive deployments
Preview – openstatus-status-page — 70b7ffa6 Deployed Oct 25, 2026 by vercel[bot]
Preview – openstatus-web — 70b7ffa6 Deployed Oct 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dashboard: mapTimingPhases does not sort timing phase buckets chronologically (oldest -> newest)

2 participants