Merged PR 4455: Added has_verification_request
# Description Added has_verification_request for New Dash report # 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. Added has_verification_request Related work items: #27787
This commit is contained in:
commit
f28db85968
4 changed files with 20 additions and 0 deletions
|
|
@ -85,6 +85,9 @@ select
|
|||
then true
|
||||
else false
|
||||
end as is_booking_cancelled,
|
||||
case
|
||||
when bts.id_verification_request is null then false else true
|
||||
end as has_verification_request,
|
||||
case
|
||||
when sum(case when bsd.is_paid_service then 1 else 0 end) > 0
|
||||
then true
|
||||
|
|
|
|||
|
|
@ -4309,6 +4309,14 @@ models:
|
|||
description: |
|
||||
Flag to identify if the booking has been cancelled or not.
|
||||
|
||||
- name: has_verification_request
|
||||
data_type: boolean
|
||||
description: |
|
||||
Flag to identify if the booking has a verification request or not.
|
||||
Cannot be null.
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: has_paid_services
|
||||
data_type: boolean
|
||||
description: |
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ with
|
|||
|
||||
select
|
||||
b.id_booking as id_booking,
|
||||
b.has_verification_request as has_verification_request,
|
||||
b.id_deal as id_deal,
|
||||
d.main_deal_name as main_deal_name,
|
||||
hd.deal_name as hubspot_deal_name,
|
||||
|
|
|
|||
|
|
@ -1250,6 +1250,14 @@ models:
|
|||
- not_null
|
||||
- unique
|
||||
|
||||
- name: has_verification_request
|
||||
data_type: boolean
|
||||
description: |
|
||||
Flag to identify if the booking has a verification request or not.
|
||||
Cannot be null.
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: id_deal
|
||||
data_type: string
|
||||
description: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue