Skip to content

feat(webhooks): Added idempotency for webhooks of (issue.created and error.created) - #127253

Open
GemTails wants to merge 2 commits into
getsentry:masterfrom
GemLunaMarine:webhook-idempotency
Open

GemTails wants to merge 2 commits into
getsentry:masterfrom
GemLunaMarine:webhook-idempotency

Conversation

@GemTails

Copy link
Copy Markdown

Solution to issue: #126707

Currently, only issue.created and error.created has the "Idempotency-Key" headers for webhooks. Going to work on issue.resolved and other issue types after this Pull Request.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@GemTails
GemTails requested review from a team as code owners October 13, 2026 14:33
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 13, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 9cf5c4a. Configure here.

Comment thread tests/sentry/sentry_apps/api/serializers/test_app_platform_event.py Outdated
@GemLunaMarine

Copy link
Copy Markdown

Just to add, "event_id" is naturally idempotent, as it is generated in Relay and kept the same throughout, thus retries will always keep the event_id the same (i think)

This branch has not been deployed

No deployments
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