fix: reconcile pydantic v2 config names and drop unused fields - #195
Open
ToxicBiohazard wants to merge 4 commits into
Open
ToxicBiohazard wants to merge 4 commits into
ToxicBiohazard wants to merge 4 commits into
Conversation
These fields are never read. Leaving them in place hides stale Vault keys that extra=forbid should reject. Co-authored-by: Cursor <cursoragent@cursor.com>
The seed script still looked up the pre-migration ROLE_ prefix, so it skipped every role in the current env files. Co-authored-by: Cursor <cursoragent@cursor.com>
BOT_ENVIRONMENT is one character away from BOT__ENVIRONMENT, and they mean different things. APP_ENV_FILE now selects the deployed env file, while the old name still works. Co-authored-by: Cursor <cursoragent@cursor.com>
Alembic still read the pre-migration MYSQL_* variables and ignored ASYNC. Migrations now use the same URL builder as the app, with the sync driver forced on. Co-authored-by: Cursor <cursoragent@cursor.com>
ToxicBiohazard
requested review from
dimoschi and
makelarisjr
as code owners
September 29, 2026 01:54
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #195 +/- ##
==========================================
- Coverage 66.60% 66.05% -0.55%
==========================================
Files 54 55 +1
Lines 3177 3226 +49
==========================================
+ Hits 2116 2131 +15
- Misses 1061 1095 +34 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
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.
Types of changes
What types of changes does your code introduce?
Put an
xin the boxes that apply.Proposed changes
Reconcile the config leftovers from the Pydantic v2 migration.
Fixes #189
Fixes #190
APRIL_ROLE_1,APRIL_ROLE_2,RANK_FIVE,RANK_TWENTY_FIVE,RANK_FIFTY,RANK_HUNDRED,ACADEMY_CBBH,APRIL_FLAG_1,APRIL_FLAG_2,SLACK_WEBHOOK, andJIRA_SPOILER_WEBHOOK.extra="forbid"will reject them if they are still set.ROLE__{suffix}instead of the pre-migrationROLE_prefix.APP_ENV_FILE.BOT_ENVIRONMENTstill works, so current Vault configs keep booting. Either flag loadsENV_PATHwhen it is set.ASYNCselectsasyncmyorpymysql, and Alembic calls that builder with the sync driver instead of readingMYSQL_*.Checklist
Put an
xin the boxes that apply.Additional context
startup.shstill usesMYSQL_*for the readiness ping..docker.envalready defines bothMYSQL_*andDATABASE__*.Before deploy, Vault still needs:
SEASON_IDset to the real season..test.envalready has it. A local.envmay still only haveCURRENT_SEASON_ID.JIRA_SPOILER_WEBHOOKif it is still present.Made with Cursor