Skip to content

Commit

Permalink
[US_AZ] Add early discharge sessions to analyst_data views for AZ (Re…
Browse files Browse the repository at this point in the history
…cidiviz/recidiviz-data#29354)

## Description of the change

Add early discharge sessions to analyst_data views for AZ. I uploaded it
into a sandbox (_hsalas) and it all looks well.

## 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: 4d21145fa8c7303580ea4b6afde2e1c93b9e3d34
  • Loading branch information
hugosr-r authored and Helper Bot committed May 11, 2024
1 parent 0e4b03c commit b6e65eb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Expand Up @@ -72,6 +72,9 @@
from recidiviz.calculator.query.state.views.analyst_data.supervision_clients_to_officers_ratio_quarterly import (
SUPERVISION_CLIENTS_TO_OFFICERS_RATIO_QUARTERLY_VIEW_BUILDER,
)
from recidiviz.calculator.query.state.views.analyst_data.us_az.us_az_early_discharge_sessions_preprocessing import (
US_AZ_EARLY_DISCHARGE_SESSIONS_PREPROCESSING_VIEW_BUILDER,
)
from recidiviz.calculator.query.state.views.analyst_data.us_ca.us_ca_sustainable_housing_status_periods import (
US_CA_SUSTAINABLE_HOUSING_STATUS_PERIODS_VIEW_BUILDER,
)
Expand Down Expand Up @@ -263,6 +266,7 @@
PSA_RISK_SCORES_VIEW_BUILDER,
SESSION_COHORT_REINCARCERATION_VIEW_BUILDER,
SUPERVISION_CLIENTS_TO_OFFICERS_RATIO_QUARTERLY_VIEW_BUILDER,
US_AZ_EARLY_DISCHARGE_SESSIONS_PREPROCESSING_VIEW_BUILDER,
US_ID_EARLY_DISCHARGE_SESSIONS_PREPROCESSING_VIEW_BUILDER,
US_IX_EARLY_DISCHARGE_SESSIONS_PREPROCESSING_VIEW_BUILDER,
US_IX_PAROLE_DATES_SPANS_PREPROCESSING_VIEW_BUILDER,
Expand Down
Expand Up @@ -53,6 +53,8 @@
SELECT * FROM `{project_id}.{analyst_dataset}.us_mi_early_discharge_sessions_preprocessing`
UNION ALL
SELECT * FROM `{project_id}.{analyst_dataset}.us_ix_early_discharge_sessions_preprocessing`
UNION ALL
SELECT * FROM `{project_id}.{analyst_dataset}.us_az_early_discharge_sessions_preprocessing`
)
SELECT
sessions.person_id,
Expand Down
13 changes: 13 additions & 0 deletions recidiviz/view_registry/raw_data_reference_reasons.yaml
Expand Up @@ -4,6 +4,19 @@
# or `sessions`. Please be as verbose as you can when filling out this document, including which columns
# you need from the raw table and why. This will help infrastructure teams identify gaps in our schema
# and areas for reducing tech debt.
US_AZ:
AZ_DOC_SC_COMMITMENT:
analyst_data.us_az_early_discharge_sessions_preprocessing: |-
We don't ingest early discharge data.
AZ_DOC_SC_EPISODE:
analyst_data.us_az_early_discharge_sessions_preprocessing: |-
We don't ingest early discharge data.
AZ_DOC_SC_OFFENSE:
analyst_data.us_az_early_discharge_sessions_preprocessing: |-
We don't ingest early discharge data.
LOOKUPS:
analyst_data.us_az_early_discharge_sessions_preprocessing: |-
We don't ingest early discharge data.
US_CA:
AgentParole:
workflows_views.supervision_staff_record: |-
Expand Down

0 comments on commit b6e65eb

Please sign in to comment.