-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
chore(auth): remove unused AuthProviderDefaultTeams model #83131
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
Conversation
|
This PR has a migration; here is the generated SQL for --
-- Moved model AuthProviderDefaultTeams to pending deletion state
--
-- (no-op) |
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
wedamija
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is a control model, when deleting you may need to add it to
sentry/src/sentry/db/router.py
Lines 68 to 76 in 95cba0c
| historical_silo_assignments = { | |
| "sentry_actor": SiloMode.REGION, | |
| "sentry_teamavatar": SiloMode.REGION, | |
| "sentry_projectavatar": SiloMode.REGION, | |
| "sentry_pagerdutyservice": SiloMode.REGION, | |
| "sentry_notificationsetting": SiloMode.CONTROL, | |
| "authprovider_duplicate": SiloMode.CONTROL, | |
| "authidentity_duplicate": SiloMode.CONTROL, | |
| } |
cathteng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳
wedamija
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, good to go. You'll just need to rebase and remove any changes to the json files since they're now deleted
93fbabe to
4ebc0c1
Compare
4ebc0c1 to
114f702
Compare
|
This PR has a migration; here is the generated SQL for --
-- Moved model AuthProviderDefaultTeams to pending deletion state
--
-- (no-op) |
Follow-up to #83131. May need to add this table to the historical silo assignments if the migration is a no-op.
"Completely defunct model;" no foreign keys constraints. No rows in redash and is not used in the codebase. PR 1 of https://develop.sentry.dev/backend/application-domains/database-migrations/#deleting-tables.
Follow-up to #83131. May need to add this table to the historical silo assignments if the migration is a no-op.
"Completely defunct model;" no foreign keys constraints. No rows in redash and is not used in the codebase. PR 1 of https://develop.sentry.dev/backend/application-domains/database-migrations/#deleting-tables.