Skip to content

Conversation

@kcons
Copy link
Member

@kcons kcons commented Nov 19, 2025

Finalize the field removal.

@kcons kcons requested a review from a team as a code owner November 19, 2025 21:18
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 19, 2025
# 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
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Field deletion should be post-deployment migration

The migration uses DeletionAction.DELETE to physically drop the is_single_written column from the database, but is_post_deployment is set to False. This means the column will be dropped during deployment while old code might still be running, potentially causing errors. Since the field was already moved to pending deletion in migration 0100 and removed from the model code, this migration should have is_post_deployment = True to ensure the column is only dropped after all servers are running the new code that no longer references it.

Fix in Cursor Fix in Web

Copy link
Member Author

Choose a reason for hiding this comment

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

Pretty sure you're wrong. The whole point of the pending dance is to make it safe. The guidelines for post-deploy don't call out this very normal sort of migration, and other examples of similar migrations aren't post migration.
I think you're being a little silly.

@github-actions
Copy link
Contributor

This PR has a migration; here is the generated SQL for src/sentry/workflow_engine/migrations/0101_remove_is_single_written_field.py

for 0101_remove_is_single_written_field in workflow_engine

--
-- Remove field is_single_written from workflowfirehistory
--
ALTER TABLE "workflow_engine_workflowfirehistory" DROP COLUMN "is_single_written" CASCADE;

@kcons kcons requested a review from a team November 19, 2025 21:29
@kcons kcons merged commit cb9e37c into master Nov 19, 2025
68 of 69 checks passed
@kcons kcons deleted the kcons/signalit branch November 19, 2025 22:10
@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2025
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