Skip to content

chore(relocation) Exclude Email model from relocations v2 #116256

Merged
markstory merged 2 commits into
masterfrom
chore-relocation-no-email-two
May 27, 2026
Merged

chore(relocation) Exclude Email model from relocations v2 #116256
markstory merged 2 commits into
masterfrom
chore-relocation-no-email-two

Conversation

@markstory
Copy link
Copy Markdown
Member

Redo of #116226 which I reverted because it caused test failures on master that weren't caught by selective testing.


This model frequently blocks relocations for import/export differences,
and I'd like that to not happen anymore.

The Email model is populated by signals on create/delete operations to UserEmail it does not synchronize state on updates, and there are several older user accounts that are missing records in sentry_email that are present in sentry_useremail which cause relocations to fail.

By excluding this model from exports, these records won't participate in the validation checks and can't cause diffs. When the relocation is processed records will still be stored in sentry_email because of the aformentioned signals.

markstory added 2 commits May 26, 2026 17:43
Redo of #116226 which I reverted because it caused test failures on
master that weren't caught by selective testing.

---

This model frequently blocks relocations for import/export differences,
and I'd like that to not happen anymore.

The Email model is populated by signals on create/delete operations to
UserEmail it does not synchronize state on updates, and there are
several older user accounts that are missing records in sentry_email
that are present in sentry_useremail which cause relocations to fail.

By excluding this model from exports, these records won't participate in
the validation checks and can't cause diffs. When the relocation is
processed records will still be stored in sentry_email because of the
aformentioned signals.
@markstory markstory requested review from a team as code owners May 26, 2026 22:10
@markstory markstory requested review from a team and removed request for a team May 26, 2026 22:10
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 26, 2026
assert not findings


def test_bad_missing_custom_ordinal() -> None:
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The tests in this file are the ones that failed. I've removed this test as it was covering a different error, and we have other tests covering the duplicate ordinals and incorrect ordinal values.

"""
{
"model": "sentry.email",
"model": "sentry.sentryapp",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is the only other model I could find using the obfuscating comparator.

@markstory markstory merged commit df7db7a into master May 27, 2026
63 checks passed
@markstory markstory deleted the chore-relocation-no-email-two branch May 27, 2026 13:59
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