Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(hybrid-cloud): Fix notification helpers for split db and split silo world #55829

Merged
merged 3 commits into from
Sep 7, 2023

Conversation

dashed
Copy link
Member

@dashed dashed commented Sep 6, 2023

Notification helpers can only be called from the region silo, and thus querying on the User model is not legal.

@dashed dashed requested a review from a team September 6, 2023 23:58
@dashed dashed self-assigned this Sep 6, 2023
@dashed dashed requested a review from a team as a code owner September 6, 2023 23:58
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 6, 2023
@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Merging #55829 (a64560d) into master (7e6102f) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master   #55829      +/-   ##
==========================================
- Coverage   80.14%   80.14%   -0.01%     
==========================================
  Files        5055     5055              
  Lines      217204   217204              
  Branches    36779    36779              
==========================================
- Hits       174077   174070       -7     
- Misses      37779    37785       +6     
- Partials     5348     5349       +1     
Files Changed Coverage
src/sentry/notifications/helpers.py 100.00%

@@ -15,12 +15,11 @@
"sentry.DeletedOrganization",
"sentry.Email",
"sentry.Organization",
"sentry.User",
Copy link
Member Author

Choose a reason for hiding this comment

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

This change in this PR reverts the change introduced in #55744.

@dashed dashed merged commit 731bdbc into master Sep 7, 2023
59 checks passed
@dashed dashed deleted the hybrid-cloud/split-silo-test/2-notification-helpers branch September 7, 2023 11:46
@github-actions github-actions bot locked and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants