Merged PR 4352: Bulk update dash_source to business_scope

# Description

Changes:
* Switches dash_source to business_scope in all kpis models, schema and macro configuration.

# 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.
- [X] I have checked for DRY opportunities with other models and docs.
- [X] 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: #27356
This commit is contained in:
Oriol Roqué Paniagua 2025-02-11 16:19:33 +00:00
parent 4f2a34427f
commit 78707ef649
23 changed files with 231 additions and 164 deletions

View file

@ -6,7 +6,7 @@
{{
config(
materialized="table",
unique_key=["date", "id_deal", "dash_source", "has_id_check"],
unique_key=["date", "id_deal", "business_scope", "has_id_check"],
)
}}
@ -16,7 +16,7 @@ select
coalesce(icuh.id_deal, 'UNSET') as id_deal,
case
when icbs.id_booking is not null then 'New Dash' else 'Old Dash'
end as dash_source,
end as business_scope,
case
when icv.id_verification is null then 'W/O Id Check' else 'With Id Check'
end as has_id_check,