Skip to content

fix(status-page): order reports by latest update in getLight - #3003

Merged
mxkaske merged 4 commits into
openstatusHQ:mainfrom
shafiktanbir:fix/status-page-getlight-sort-reports
Oct 26, 2026
Merged

mxkaske merged 4 commits into
openstatusHQ:mainfrom
shafiktanbir:fix/status-page-getlight-sort-reports

Conversation

@shafiktanbir

Copy link
Copy Markdown
Contributor

Fixes #3002

Applies the same statusReports sort from statusPage.get to statusPage.getLight (reports without updates first, then descending by latest statusReportUpdates[0].date with b.id - a.id tie-breaking), and adds statusPage.getLight assertions to statusPage.order.test.ts.

@vercel

vercel Bot commented Oct 26, 2026

Copy link
Copy Markdown

@shafiktanbir is attempting to deploy a commit to the OpenStatus Team on Vercel.

A member of the Team first needs to authorize it.

@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.

All reported issues were addressed

Reply to a comment to ask cubic a question or push back. It learns from your replies.

View guided diff | Re-trigger cubic

Comment thread packages/api/src/router/statusPage.ts Resolved

@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.

All reported issues were addressed across 2 files

Requires human review: Auto-approval blocked because this review re-detected 1 unresolved issue already reported by Cubic.

View guided diff | Re-trigger cubic

shafiktanbir and others added 2 commits October 26, 2026 20:12
Share `sortStatusReportsByLatestUpdate` between `statusPage.get` and `statusPage.getLight` and add a direct unit test for the comparator.
@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
openstatus-dashboard Ready Ready Preview Oct 26, 2026 4:03pm UTC
openstatus-status-page Ready Ready Preview Oct 26, 2026 4:03pm UTC
openstatus-web Ready Ready Preview Oct 26, 2026 4:03pm UTC

Request Review

This branch was successfully deployed

3 active deployments
Preview – openstatus-status-page — 2326f95a Deployed Oct 26, 2026 by vercel[bot]
Preview – openstatus-web — 2326f95a Deployed Oct 26, 2026 by vercel[bot]
Preview – openstatus-dashboard — 2326f95a Deployed Oct 26, 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.

statusPage.getLight returns statusReports in unsorted database order instead of ordering by latest update

2 participants