Gate Admin database migrations behind environment variable instead of self-hosted check#7810
Gate Admin database migrations behind environment variable instead of self-hosted check#7810trmartin4 wants to merge 4 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7810 +/- ##
==========================================
+ Coverage 61.14% 61.17% +0.02%
==========================================
Files 2175 2175
Lines 96899 96904 +5
Branches 8738 8738
==========================================
+ Hits 59247 59279 +32
+ Misses 35542 35513 -29
- Partials 2110 2112 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed the change that decouples Admin database migrations from the self-hosted flag and gates them behind a new Code Review DetailsNo new findings beyond the existing (now outdated) suggestion thread on test naming, which has since been addressed in the current test names. CI signals (Codecov patch coverage 66.66% on |
|



🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-38758
📔 Objective
Helm deployments are self-hosted, but we do not want them to run the Admin-controlled database migrations.
To support this, we disconnect the running of migrations from the user's hosting method, and instead rely on an environment variable.
The value of the variable will be as follows:
truein Docker initialization.false)false)Implementation Notes:
Startup.csthe config pipeline hasn't run.TimeProviderto allow testability without making every test run wait the full 20 seconds.