Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Aggregated Metrics] Refactor generate_aggregation_query_fragment() f…
…unctions to support new optimized query format (Recidiviz/recidiviz-data#34812) ## Description of the change Updates the `generate_aggregation_query_fragment()` functions to take in `filter_observations_by_type` and `read_observation_attributes_from_json` arguments and pass those values through to `get_observation_conditions_string*()` functions. This will allow us to reuse these aggregation logic fragments when building aggregated metrics queries that referenced the new, smaller unpacked observation queries introduced in Recidiviz/recidiviz-data#34725. I checked and there were no changes to aggregated metrics queries introduced by this change. ## 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 Part of Recidiviz/recidiviz-data#29291 ## 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: - [ ] 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: bc87d23a0e0a801f21563c79c44914321fe523bc
- Loading branch information