Skip to content

fix(ACI): pass trigger ID as kwarg to action -> ARTA serializer#104277

Merged
mifu67 merged 1 commit intomasterfrom
mifu67/aci/fix-dc-mor
Dec 3, 2025
Merged

fix(ACI): pass trigger ID as kwarg to action -> ARTA serializer#104277
mifu67 merged 1 commit intomasterfrom
mifu67/aci/fix-dc-mor

Conversation

@mifu67
Copy link
Copy Markdown
Contributor

@mifu67 mifu67 commented Dec 2, 2025

The logic for the action -> alert rule trigger action serializer assumed that there would be a one to one relationship between detectors and workflows. This is not the case, as the new UI allows multiple workflows to be connected to a single detector. To prevent the MultipleObjectsReturned error from happening in the serializer, because the action -> ARTA serializer is only used within the context of detector -> alert rule serialization, we can pass in the correct trigger ID as a keyword argument.

Fixes SENTRY-5C14

@mifu67 mifu67 requested a review from a team as a code owner December 2, 2025 21:20
@mifu67 mifu67 requested a review from a team December 2, 2025 21:20
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 2, 2025
@mifu67 mifu67 merged commit 6eb917e into master Dec 3, 2025
69 checks passed
@mifu67 mifu67 deleted the mifu67/aci/fix-dc-mor branch December 3, 2025 00:38
@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 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.

2 participants