Repository navigation
feat(dashboard): Releases Health page — adoption and regressions (#453) - #568
Merged
Merged
Conversation
Add /api/releases/summary aggregation and enable the Releases nav surface so teams can compare adoption and regressions across versions, including an explicit Unknown bucket and deep links via release=__unknown__. Co-authored-by: Cursor <[email protected]>
Treat null, blank/whitespace, and literal __unknown__ as Unknown in isUnknownReleaseKey, SQL match/normalize, and Prisma where so Release Health deep links stay consistent with Issues/Events/Sessions scopes. Co-authored-by: Cursor <[email protected]>
Align Sessions/Overview `__unknown__` matching with Release Health so sessions that resolve to a known release via events are not counted as Unknown. Co-authored-by: Cursor <[email protected]>
Align Sessions/Overview release= event attribution with Release Health so deep-link session counts match adoption KPIs when Session.release is blank. Co-authored-by: Cursor <[email protected]>
Sessions/Events/Issues/Performance now use a valid URL metricsUntil for open-ended KPI windows so deep links match the Releases table the user just viewed. Co-authored-by: Cursor <[email protected]>
Unblocks the dashboard build after Release Health deep links pass metricsUntil into the errors page. Co-authored-by: Cursor <[email protected]>
buildDashboardNavTabHref now reuses the scoped list allow-list so range/from/to/metricsUntil survive Issues/Events/Sessions tab changes after Release Health deep links. Co-authored-by: Cursor <[email protected]>
Filter GET forms only forwarded range/from/to, so Apply after a Release Health deep link dropped the KPI anchor and re-anchored windows to now. Co-authored-by: Cursor <[email protected]>
When platform and release are both scoped, Sessions/Overview event-release EXISTS clauses now constrain e.platform like Release Health, so deep-link session counts match the Releases table across platforms. Co-authored-by: Cursor <[email protected]>
Prefer liveUrlParams for Issues detail metricsUntil, forward URL metricsUntil into GET /api/overview for open-ended ranges, and style Releases vs-previous deltas by semantic direction (higher sessions good; higher errors bad). Co-authored-by: Cursor <[email protected]>
Write the SSR KPI anchor into the URL on open-ended ranges (and strip it on bounded presets) so Overview/list nav, Apply, and issue detail links share the same window instead of re-anchoring to now. Co-authored-by: Cursor <[email protected]>
Use shared COALESCE(session, latest known event) matching so blank/sentinel session releases and multi-release sessions deep-link consistently, and SQL groupBy when Overview filters by release. Co-authored-by: Cursor <[email protected]>
Load scoped occurrence ids via releaseFilterMatchSql (tenant-joined) so release=__unknown__ includes null/blank rows matching detail KPIs. Co-authored-by: Cursor <[email protected]>
Always query raw Events via buildEventWhereSql / releaseFilterMatchSql so release=__unknown__ and TRIM matching match summary KPIs and Release Health. Co-authored-by: Cursor <[email protected]>
When release= is set, count distinct session identities using the same COALESCE(session, latest known event) attribution as session KPIs and Release Health so the two headline metrics stay in sync. Co-authored-by: Cursor <[email protected]>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f429531. Configure here.
Open-ended Overview KPIs use metricsSince/metricsUntil, but active-issue hrefs only passed range, so issue detail re-anchored to now (or the Issues ~7d path). Forward the exact window and honor it on GET /api/errors/:id. Co-authored-by: Cursor <[email protected]>
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
GET /api/releases/summaryaggregates sessions, active users, events, errors, adoption share, and error rate per release (including an explicit Unknown bucket)./dashboard/releases(nav + Quick Action), with environment/platform/date-range filters, sort by recency/adoption/errors/error rate, vs-previous-release deltas (Unknown excluded from comparison chain), and deep links to Issues/Events/Sessions.release=__unknown__end-to-end (URL allow-list, list/overview filters with TRIM matching, Unknown option in release pickers) so deep links never rely on an emptyrelease=param.Test plan
/dashboard/releases— nav is enabled (not Coming soon)0%adoption and—error raterelease=and other scope preservedrelease=__unknown__pnpm lint && pnpm test && pnpm build(already green locally)Closes #453
Made with Cursor