Skip to content

Remove TylerEnv from CodeDatabase#408

Open
rajeswari1301 wants to merge 3 commits into
mainfrom
codes-db-cleanup
Open

Remove TylerEnv from CodeDatabase#408
rajeswari1301 wants to merge 3 commits into
mainfrom
codes-db-cleanup

Conversation

@rajeswari1301

@rajeswari1301 rajeswari1301 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

The code database was tagging every row with 'illinois-stage' instead of just 'illinois' because CodeDatabase was accepting a TylerDomain, which combined the jurisdiction and the env together. The env does not belong here, as one database should only ever serve one jurisdiction.

To fix this, I changed CodeDatabase and CodeDatabaseAPI to accept the Jurisdiction directly., and wrote a migration (which strips '-stage' and '-prod') to clean up existing rows, and updated all callers to follow the same pattern used in recent refactors.

Resolves #400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove TylerEnv from the CodesDatabase

1 participant