Skip to content

Conversation

@scttcper
Copy link
Member

@scttcper scttcper commented Oct 29, 2025

Integration webhooks that resolve issues in releases were creating SET_RESOLVED_IN_RELEASE activities without linking them to their GroupResolution via the ident field. This prevented event_manager from finding the resolution activity during regression detection, causing follows_semver and resolved_in_version fields to be missing from regression activities.

fixes #102234

… regression detection

Integration webhooks that resolve issues in releases were creating
SET_RESOLVED_IN_RELEASE activities without linking them to their
GroupResolution via the ident field. This prevented event_manager from
finding the resolution activity during regression detection, causing
follows_semver and resolved_in_version fields to be missing from
regression activities. Now we retroactively link the activity after
creating the GroupResolution so regressions can properly display
semver comparison context.
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 29, 2025
@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #102340   +/-   ##
========================================
  Coverage   80.95%    80.95%           
========================================
  Files        8797      8797           
  Lines      389840    389810   -30     
  Branches    24800     24800           
========================================
- Hits       315607    315583   -24     
+ Misses      73859     73853    -6     
  Partials      374       374           

Use activity_type.value in the ident-linking query to avoid passing the
Enum to the ORM filter. This fixes tests failing with TypeError when
filtering by Activity.type.
@scttcper scttcper marked this pull request as ready for review October 29, 2025 17:52
@scttcper scttcper requested review from a team as code owners October 29, 2025 17:52
.first()
)
if latest_resolution_activity and not latest_resolution_activity.ident:
latest_resolution_activity.update(ident=resolution.id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Activity Linking Fails on Updated Resolutions

The if created: condition incorrectly restricts linking a new Activity to its GroupResolution only when the resolution is newly created. When an existing GroupResolution is updated, the Activity.ident field remains unset, which breaks regression detection functionality.

Fix in Cursor Fix in Web

Copy link
Member Author

Choose a reason for hiding this comment

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

i think that should be okay

@scttcper scttcper requested a review from a team October 29, 2025 23:40
@scttcper scttcper merged commit e10d20f into master Oct 30, 2025
69 of 70 checks passed
@scttcper scttcper deleted the scttcper/fix-integration-resolve-activity-ident branch October 30, 2025 16:26
@sentry
Copy link

sentry bot commented Nov 2, 2025

Issues attributed to commits in this pull request

This pull request was merged and Sentry observed the following issues:

shashjar pushed a commit that referenced this pull request Nov 4, 2025
… regression detection (#102340)

Integration webhooks that resolve issues in releases were creating
SET_RESOLVED_IN_RELEASE activities without linking them to their
GroupResolution via the ident field. This prevented event_manager from
finding the resolution activity during regression detection, causing
follows_semver and resolved_in_version fields to be missing from
regression activities.

fixes #102234
andrewshie-sentry pushed a commit that referenced this pull request Nov 13, 2025
… regression detection (#102340)

Integration webhooks that resolve issues in releases were creating
SET_RESOLVED_IN_RELEASE activities without linking them to their
GroupResolution via the ident field. This prevented event_manager from
finding the resolution activity during regression detection, causing
follows_semver and resolved_in_version fields to be missing from
regression activities.

fixes #102234
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2025
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.

Regression version comparison incorrectly identified issue as regressed, when version was older than resolved-in version

3 participants