Skip to content

Conversation

@iamrajjoshi
Copy link
Collaborator

Continuing work for https://www.notion.so/sentry/Workflow-Status-Changes-1fa8b10e4b5d80a48acddb95d160da1f?source=copy_link#1fa8b10e4b5d80e6bb1aef39cab2c6dc

Following up: #93522

This PR adds support for passing evidence data from workflow engine detectors to activity records when status changes occur.

  • Refactored Stateful Detector to decompose fetch_evidence_data
  • Added activity_data field to StatusChangeMessage and StatusChangeMessageData classes
  • Modified status change consumer to pass through evidence data when updating group status

A followup PR will use the data saved on the Activity to send notifications.

@iamrajjoshi iamrajjoshi self-assigned this Jul 14, 2025
@iamrajjoshi iamrajjoshi requested review from a team as code owners July 14, 2025 20:18
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 14, 2025

def bulk_get_groups_from_fingerprints(
project_fingerprint_pairs: Iterable[tuple[int, Sequence[str]]]
project_fingerprint_pairs: Iterable[tuple[int, Sequence[str]]],
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

linter changes

@iamrajjoshi iamrajjoshi merged commit 5bf5ffd into master Jul 15, 2025
65 checks passed
@iamrajjoshi iamrajjoshi deleted the raj/aci/activity-evidence-data branch July 15, 2025 17:02
@codecov
Copy link

codecov bot commented Jul 15, 2025

Codecov Report

Attention: Patch coverage is 94.44444% with 1 line in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
tests/sentry/issues/test_status_change_consumer.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #95475      +/-   ##
==========================================
- Coverage   86.44%   80.47%   -5.97%     
==========================================
  Files       10535    10492      -43     
  Lines      607153   605697    -1456     
  Branches    23781    23781              
==========================================
- Hits       524828   487449   -37379     
- Misses      82031   117954   +35923     
  Partials      294      294              

@github-actions github-actions bot locked and limited conversation to collaborators Jul 31, 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.

3 participants