-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
chore(aci): pending delete WorkflowFireHistory rollout columns #91910
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
# is a schema change, it's completely safe to run the operation after the code has deployed. | ||
# Once deployed, run these manually via: https://develop.sentry.dev/database-migrations/#migration-deployment | ||
|
||
is_post_deployment = False |
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.
this table has 43 mil rows. should this and/or the follow up migration to actually delete the columns be post deploy?
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.
it's not being written to very often anymore (kind of exploded last week, but that change has been rolled back and updated to only write for workflows that fire actions)
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.
this table has 43 mil rows. should this and/or the follow up migration to actually delete the columns be post deploy?
Nope, neither of them should be post deployment.
We have it in our docs, but it is a bit hidden, column removals should never be post deployment operations: https://develop.sentry.dev/backend/application-domains/database-migrations/#post-deploy-migrations-is_post_deployment
This PR has a migration; here is the generated SQL for for --
-- Moved workflowfirehistory.has_fired_actions field to pending deletion state
--
-- (no-op)
--
-- Moved workflowfirehistory.has_passed_filters field to pending deletion state
--
-- (no-op) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
|
Follow up to #91904
Set the unused columns to pending deletion according to https://develop.sentry.dev/backend/application-domains/database-migrations/#deleting-columns