-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(eco): link integration resolve activities to GroupResolution for regression detection #102340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(eco): link integration resolve activities to GroupResolution for regression detection #102340
Conversation
… 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.
Codecov Report✅ All modified and coverable lines are covered by tests. 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.
| .first() | ||
| ) | ||
| if latest_resolution_activity and not latest_resolution_activity.ident: | ||
| latest_resolution_activity.update(ident=resolution.id) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Issues attributed to commits in this pull requestThis pull request was merged and Sentry observed the following issues: |
… 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
… 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
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