Automate post-deployment steps (Feature Flags & Data Migrations)#6195
Merged
jhenderson merged 3 commits intonextfrom Mar 10, 2026
Merged
Automate post-deployment steps (Feature Flags & Data Migrations)#6195jhenderson merged 3 commits intonextfrom
jhenderson merged 3 commits intonextfrom
Conversation
thomasleese
reviewed
Mar 5, 2026
54d68f5 to
df692b3
Compare
ffa0f44 to
efca0ff
Compare
efca0ff to
9cec7ba
Compare
TheOneFromNorway
requested changes
Mar 5, 2026
6bd4f8d to
695042f
Compare
a3179e3 to
373a7c0
Compare
TheOneFromNorway
approved these changes
Mar 9, 2026
43303be to
da77ea3
Compare
We sometimes forget to enable the feature flag required for data migrations. Adding the data_migrate gem lets us run data migrations automatically as part of the GitHub deployment workflow, giving better visibility into migration/deployment progress. Also avoids needing to request console access to run data migrations manually. Jira-Issue: MAV-4101
…igrate gem Taking the opportunity to backfill a column using this gem instead of having to do it manually. Jira-Issue: MAV-4101
Now that this backfill is moved into a data migration, we can remove the manual version. Jira-Issue: MAV-4101
da77ea3 to
7274b76
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
This PR introduces automation for our post-deployment steps to ensure that database migrations and feature flag toggles are executed consistently as part of our deployment pipeline.
Currently, we rely on manual execution of these steps after a release. We have recently experienced incidents where feature flags were accidentally left disabled.
Ticket: MAV-4101
What’s changed
data_migrategem to support running data migrations in the deployment workflowdeploy.ymlto run the data migrations in apost-deployjobNotifyLogEntry#purposeusing this gem instead of having to do it manuallyWhat the logging should look like on CloudWatch
Data replication test results
It took 51 minutes to complete the data migration.