Skip to content

ref(seer): Delete Seer settings ProjectOption rows instead of writing defaults#111543

Merged
srest2021 merged 2 commits intomasterfrom
srest2021/fix-dual-write-options
Mar 25, 2026
Merged

ref(seer): Delete Seer settings ProjectOption rows instead of writing defaults#111543
srest2021 merged 2 commits intomasterfrom
srest2021/fix-dual-write-options

Conversation

@srest2021
Copy link
Member

@srest2021 srest2021 commented Mar 25, 2026

When writing Seer project preferences, delete the ProjectOption row when the value matches the registered default. This lets us distinguish "never configured" from "configured with defaults" by checking for SeerProjectRepository and ProjectOption existence, which simplifies the upcoming dual-read from Sentry DB and allows us to return null preference for never-configured projects. Also, we don't needlessly store default project options.

When writing Seer project preferences, delete the ProjectOption row
when the value matches the registered default. This lets us distinguish
"never configured" from "configured with defaults" by checking for row
existence, which simplifies the upcoming read-from-Sentry-DB migration.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
Made-with: Cursor
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 25, 2026
@srest2021 srest2021 changed the title ref(seer): Delete ProjectOption rows instead of writing defaults ref(seer): Delete Seer settings ProjectOption rows instead of writing defaults Mar 25, 2026
@srest2021 srest2021 marked this pull request as ready for review March 25, 2026 19:00
@srest2021 srest2021 requested a review from a team as a code owner March 25, 2026 19:00
@srest2021 srest2021 merged commit a4f82ed into master Mar 25, 2026
69 of 70 checks passed
@srest2021 srest2021 deleted the srest2021/fix-dual-write-options branch March 25, 2026 19:11
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