Merged PR 5632: Resolution incidents in status Incomplete now have reduced test coverage
# Description Resolution incidents in status Incomplete now have reduced test coverage. This fixes today's data alert. # Checklist - [X] The edited models and dependants run properly with production data. - [X] The edited models are sufficiently documented. - [X] The edited models contain PK tests, and I've ran and passed them. - [ ] I have checked for DRY opportunities with other models and docs. - [ ] I've picked the right materialization for the affected models. # Other - [ ] Check if a full-refresh is required after this PR is merged. Related work items: #31843
This commit is contained in:
parent
e0e97709c0
commit
900c73b076
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
{% set tests_or_cancelled_incidents = "ARCHIVED" %}
|
{% set tests_or_cancelled_incidents = "ARCHIVED" %}
|
||||||
|
|
||||||
-- Some incidents have insufficient details which might create data quality issues.
|
-- Some incidents have insufficient details which might create data quality issues.
|
||||||
{% set insufficient_details_incidents = "INSUFFICIENT DETAILS" %}
|
{% set insufficient_details_incidents = ("INSUFFICIENT DETAILS", "INCOMPLETE") %}
|
||||||
|
|
||||||
with
|
with
|
||||||
raw_incident as (select * from {{ source("resolutions", "incident") }}),
|
raw_incident as (select * from {{ source("resolutions", "incident") }}),
|
||||||
|
|
@ -21,7 +21,7 @@ select
|
||||||
{{ adapter.quote("documents") }} ->> 'VerificationId' as id_verification,
|
{{ adapter.quote("documents") }} ->> 'VerificationId' as id_verification,
|
||||||
{{ adapter.quote("documents") }} ->> 'CurrentStatusName' as current_status_name,
|
{{ adapter.quote("documents") }} ->> 'CurrentStatusName' as current_status_name,
|
||||||
upper({{ adapter.quote("documents") }} ->> 'CurrentStatusName')
|
upper({{ adapter.quote("documents") }} ->> 'CurrentStatusName')
|
||||||
= '{{ insufficient_details_incidents }}' as is_incident_missing_details,
|
in {{ insufficient_details_incidents }} as is_incident_missing_details,
|
||||||
({{ adapter.quote("documents") }} ->> 'IsSubmissionComplete')::boolean
|
({{ adapter.quote("documents") }} ->> 'IsSubmissionComplete')::boolean
|
||||||
as is_submission_complete,
|
as is_submission_complete,
|
||||||
{{ adapter.quote("documents") }} ->> 'CurrentAgentName' as current_agent_name,
|
{{ adapter.quote("documents") }} ->> 'CurrentAgentName' as current_agent_name,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue