Skip to content

fix(releases): Exclude archived releases from "Resolve in Next Release"#106674

Merged
leeandher merged 4 commits intomasterfrom
leander/rinr
Jan 23, 2026
Merged

fix(releases): Exclude archived releases from "Resolve in Next Release"#106674
leeandher merged 4 commits intomasterfrom
leander/rinr

Conversation

@leeandher
Copy link
Member

when using "resolve in next release" with multiple builds sharing the same version number, sentry was incorrectly selecting archived builds instead of the latest active one. this adds a filter for ReleaseStatus.OPEN to both most_recent_release() and get_semver_releases() to ensure only non-archived releases are considered.

Fixes #103441

When multiple builds share the same version number, "Resolve in Next
Release" was selecting archived builds instead of the latest active
one. Filter by ReleaseStatus.OPEN in both most_recent_release() and
get_semver_releases() to ensure only non-archived releases are
considered.

Fixes GH-103441
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 21, 2026
Add tests verifying that archived releases are excluded when resolving
issues with "Resolve in Next Release". Tests cover both the helper
functions (most_recent_release, greatest_semver_release) and the full
update_groups flow.

Co-Authored-By: Claude <noreply@anthropic.com>
@leeandher leeandher marked this pull request as ready for review January 21, 2026 16:34
@leeandher leeandher requested a review from a team January 21, 2026 16:34
@leeandher leeandher requested a review from a team as a code owner January 21, 2026 16:34
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

leeandher and others added 2 commits January 21, 2026 11:45
The most_recent_release and get_semver_releases functions previously
only returned releases with OPEN status. Releases with null status
(which is the default) were incorrectly excluded. Update both queries
to include releases where status is either OPEN or null.

Co-Authored-By: Claude <noreply@anthropic.com>
@softworkz
Copy link

This comes at the right moment, we're facing this as well...
Thanks!

Copy link
Member

@ceorourke ceorourke left a comment

Choose a reason for hiding this comment

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

some real fire fixes from you this week

@leeandher leeandher merged commit e459645 into master Jan 23, 2026
66 checks passed
@leeandher leeandher deleted the leander/rinr branch January 23, 2026 20:00
JonasBa pushed a commit that referenced this pull request Jan 27, 2026
…e" (#106674)

when using "resolve in next release" with multiple builds sharing the
same version number, sentry was incorrectly selecting archived builds
instead of the latest active one. this adds a filter for
`ReleaseStatus.OPEN` to both `most_recent_release()` and
`get_semver_releases()` to ensure only non-archived releases are
considered.

Fixes #103441

---------

Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions bot locked and limited conversation to collaborators Feb 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

“Resolve in Next Release” selects an outdated build when multiple builds share the same version number

3 participants