Deploying the OH holding branch

Pending work

  • Outstanding OH-related issues are listed here.

  • We assume there will be some adjustments needed which we discover during the first two weeks or so of production use.

Deployment sequence

Freeze code
Test deploy to staging
turn on ENV feature flag in staging
Sync prod database to staging
Deploy holding branch to staging
run rake task to migrate data rake scihist:data_fixes:migrate_oh_request_email
test staging
Merge holding branch into master
Deploy master to production (but with feature flag off)
Run rake task to migrate production data rake scihist:data_fixes:migrate_oh_request_email
Announce new features are about to be turned on
turn on feature flag in production
Prepare separate PR to remove old db column and associated logic
Remove code on the “old” side of the feature flag and obsolete code paths from code
Remove now-obsolete Heroku ENV setting governing the feature in prod and staging
Prioritize remaining work.