Skip to content

fix(aci): Handle missing conditions in DataConditionGroup create#117036

Merged
malwilley merged 1 commit into
masterfrom
malwilley/validate-conditions-field
Jun 5, 2026
Merged

fix(aci): Handle missing conditions in DataConditionGroup create#117036
malwilley merged 1 commit into
masterfrom
malwilley/validate-conditions-field

Conversation

@malwilley

Copy link
Copy Markdown
Member

Fixes SENTRY-5N9F

BaseDataConditionGroupValidator.create() was accessing validated_data["conditions"] directly, which raised a KeyError when a trigger/condition group was submitted without the optional conditions field. The update() method already handled this gracefully with .get("conditions", []), so this just applies the same pattern to create().

The create method accessed validated_data["conditions"] directly, which
raised a KeyError when the optional field was omitted. Use .get() with
a default of [] to match the pattern already used in the update method.

Fixes SENTRY-5N9F
@malwilley malwilley requested a review from a team as a code owner June 5, 2026 22:07
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 5, 2026
@malwilley malwilley enabled auto-merge (squash) June 5, 2026 22:08
@malwilley malwilley merged commit c019529 into master Jun 5, 2026
66 checks passed
@malwilley malwilley deleted the malwilley/validate-conditions-field branch June 5, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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