Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BigQuery] Stop deploying SECONDARY raw data latest views (Recidiviz/…
…recidiviz-data#34309) ## Description of the change The raw data `_latest` views for SECONDARY are really only useful in the context of a raw data reimport in SECONDARY (a relatively rare event), but they represent a huge fraction of the views we generate with every deploy. This PR stops generating latest views for SECONDARY. If someone wanted to load SECONDARY latest views or any downstream views that use SECONDARY data, they could run: ``` python -m recidiviz.tools.load_end_to_end_data_sandbox \ --state_code US_XX \ --sandbox_prefix <prefix> \ --raw_data_source_instance SECONDARY \ --load_up_to_datasets <datasets to load> ``` This change reduces the number of deployed views from 4713 to 3309. I tested that using the command above would properly override the raw data dataset and it does (see [example](https://console.cloud.google.com/bigquery?project=recidiviz-staging&organizationId=448885369991&ws=!1m5!1m4!4m3!1srecidiviz-staging!2sageiduschek_us_oz_raw_data_up_to_date_views!3sIcecreamshop_latest)). ## 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 Related to Recidiviz/recidiviz-data#26138 ## Checklists ### Development **This box MUST be checked by the submitter prior to merging**: - [x] **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: - [x] 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: - [x] This pull request has a descriptive title and information useful to a reviewer - [x] Potential security implications or infrastructural changes have been considered, if relevant GitOrigin-RevId: f3349fcef94779eca0122e4fe189013281912b2e
- Loading branch information