Merged PR 4622: New Dash bug fix
# Description Filters by `bs.is_user_in_new_dash = true and bs.is_missing_id_deal = false` for services in bookings # 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. New Dash bug fix Related work items: #28194
This commit is contained in:
commit
9f580867c0
1 changed files with 3 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ with
|
||||||
int_core__booking_service_detail as (
|
int_core__booking_service_detail as (
|
||||||
select * from {{ ref("int_core__booking_service_detail") }}
|
select * from {{ ref("int_core__booking_service_detail") }}
|
||||||
),
|
),
|
||||||
|
int_core__booking_summary as (select * from {{ ref("int_core__booking_summary") }}),
|
||||||
bundle_services as (
|
bundle_services as (
|
||||||
select
|
select
|
||||||
bs.id_user_product_bundle,
|
bs.id_user_product_bundle,
|
||||||
|
|
@ -201,6 +202,8 @@ with
|
||||||
end
|
end
|
||||||
) as number_bookings_with_service_status_flagged
|
) as number_bookings_with_service_status_flagged
|
||||||
from int_core__booking_service_detail sd
|
from int_core__booking_service_detail sd
|
||||||
|
left join int_core__booking_summary bs on sd.id_booking = bs.id_booking
|
||||||
|
where bs.is_user_in_new_dash = true and bs.is_missing_id_deal = false
|
||||||
group by 1
|
group by 1
|
||||||
)
|
)
|
||||||
select
|
select
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue