Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[US_CA] Add missing locations to location metadata (Recidiviz/recidiv…
…iz-data#29142) ## Description of the change Some units only appear in AgentParole, and we want these in our location_metadata table. Also, I try to select the most recent ParoleUnit information with the least `nulls` if there are multiple choices on the most recent date. Confirmed this fixes the validation in [this query](https://console.cloud.google.com/bigquery?ws=!1m7!1m6!12m5!1m3!1srecidiviz-staging!2sus-central1!3s9bb0b997-bc31-4b96-b9eb-a678b06f7a11!2e1), which shows all rows missing in the validation are present in the updated view. ## Type of change > All pull requests must have at least one of the following labels applied (otherwise the PR will fail): | Label | Description | |----------------------------- |----------------------------------------------------------------------------------------------------------- | | Type: Bug | non-breaking change that fixes an issue | | Type: Feature | non-breaking change that adds functionality | | Type: Breaking Change | fix or feature that would cause existing functionality to not work as expected | | Type: Non-breaking refactor | change addresses some tech debt item or prepares for a later change, but does not change functionality | | Type: Configuration Change | adjusts configuration to achieve some end related to functionality, development, performance, or security | | Type: Dependency Upgrade | upgrades a project dependency - these changes are not included in release notes | ## Related issues Closes Recidiviz/recidiviz-data#29021 ## Checklists ### Development **This box MUST be checked by the submitter prior to merging**: - [ ] **Double- and triple-checked that there is no Personally Identifiable Information (PII) being mistakenly added in this pull request** These boxes should be checked by the submitter prior to merging: - [ ] Tests have been written to cover the code changed/added as part of this pull request ### Code review These boxes should be checked by reviewers prior to merging: - [ ] This pull request has a descriptive title and information useful to a reviewer - [ ] Potential security implications or infrastructural changes have been considered, if relevant GitOrigin-RevId: 174a6533dfeeee4c28539bfee2c35e949bea1ed3
- Loading branch information