Skip to content

ref(db): Remove legacy create_or_update - #123309

Merged
vgrozdanic merged 1 commit into
masterfrom
ref/remove-create-or-update
Sep 1, 2026
Merged

vgrozdanic merged 1 commit into
masterfrom
ref/remove-create-or-update

Conversation

@vgrozdanic

@vgrozdanic vgrozdanic commented Sep 1, 2026 •

Copy link
Copy Markdown
Member

End of an era, legacy create_or_update that predates Django's update_or_create is finally removed 🎉

BaseManager no longer exposes Sentry's legacy create_or_update; current callers now use Django's update_or_create or get_or_create. This removes a second upsert contract whose update return value differed from Django.

All the downstream callers have been migrated to Django's manager APIs before adopting this change.

Remove the unused custom helper and manager API after migrating all callers to Django equivalents.

Co-Authored-By: GPT-5.6 Codex <[email protected]>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 1, 2026
@vgrozdanic
vgrozdanic marked this pull request as ready for review September 1, 2026 12:40
@vgrozdanic
vgrozdanic requested review from a team as code owners September 1, 2026 12:40

@shellmayr shellmayr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

let's goooo 🚀 🚀 🚀

@vgrozdanic vgrozdanic changed the title ref(db)!: Remove legacy create_or_update ref(db): Remove legacy create_or_update Sep 1, 2026
@vgrozdanic
vgrozdanic merged commit 6ef74f1 into master Sep 1, 2026
104 of 108 checks passed
@vgrozdanic
vgrozdanic deleted the ref/remove-create-or-update branch September 1, 2026 14:57
sentry-junior Bot added a commit that referenced this pull request Sep 1, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants