Skip to content

fix(alerts): avoid 500 on partial issue-alert PUT missing actionMatch - #122401

Draft
sentry-junior[bot] wants to merge 1 commit into
masterfrom
junior/fix-partial-rule-put-actionmatch
Draft

fix(alerts): avoid 500 on partial issue-alert PUT missing actionMatch#122401
sentry-junior[bot] wants to merge 1 commit into
masterfrom
junior/fix-partial-rule-put-actionmatch

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Partial PUTs to the project rule details endpoint can omit actionMatch / name because the serializer is partial=True. The handler still used required-key access (data["actionMatch"], data["name"]), which 500s those requests.

Use .get() for those fields and let ProjectRuleUpdater keep existing rule values when they are absent (None means do not update).

Test plan

  • Added test_partial_update_without_action_match
  • CI

Fixes SENTRY-5PKS

--

View Junior Session [Sentry]

Project rule details uses a partial serializer, so clients can omit
actionMatch/name. Look those fields up with .get() and let
ProjectRuleUpdater keep existing values when they are absent.

Fixes SENTRY-5PKS
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 21, 2026
@getsantry

getsantry Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry Bot added the Stale label Sep 12, 2026
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 Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants