Merged PR 4283: adding number of days to complete verification
# Description Adding number of days to complete verification # 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. adding number of days to complete verification Related work items: #27178
This commit is contained in:
commit
3919539786
4 changed files with 20 additions and 5 deletions
|
|
@ -82,13 +82,19 @@ select
|
|||
vr.is_verification_request_complete,
|
||||
vr.verification_estimated_started_date_utc,
|
||||
vr.verification_estimated_completed_date_utc,
|
||||
case
|
||||
when vr.is_verification_request_complete is true
|
||||
then
|
||||
vr.verification_estimated_completed_date_utc
|
||||
- vr.verification_estimated_started_date_utc
|
||||
end as days_to_complete_verification,
|
||||
vr.link_used_date_utc,
|
||||
b.verification_request_booking_source,
|
||||
pv.chose_deposit,
|
||||
pv.chose_fee,
|
||||
pv.chose_waiver,
|
||||
pv.chose_no_cover,
|
||||
p.chose_checkin_cover
|
||||
coalesce(pv.chose_deposit, false) as chose_deposit,
|
||||
coalesce(pv.chose_fee, false) as chose_fee,
|
||||
coalesce(pv.chose_waiver, false) as chose_waiver,
|
||||
coalesce(pv.chose_no_cover, false) as chose_no_cover,
|
||||
coalesce(p.chose_checkin_cover, false) as chose_checkin_cover
|
||||
from int_core__bookings b
|
||||
left join int_core__accommodation a on a.id_accommodation = b.id_accommodation
|
||||
left join
|
||||
|
|
|
|||
|
|
@ -5125,6 +5125,10 @@ models:
|
|||
data_type: date
|
||||
description: "The estimated date on which the guest finished the guest journey."
|
||||
|
||||
- name: days_to_complete_verification
|
||||
data_type: numeric
|
||||
description: "Number of days it took to complete the verification."
|
||||
|
||||
- name: link_used_date_utc
|
||||
data_type: date
|
||||
description: "The date on which the guest used the link for the verification."
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ select
|
|||
verification_estimated_started_date_utc as verification_estimated_started_date_utc,
|
||||
verification_estimated_completed_date_utc
|
||||
as verification_estimated_completed_date_utc,
|
||||
days_to_complete_verification as days_to_complete_verification,
|
||||
link_used_date_utc as link_used_date_utc,
|
||||
verification_request_booking_source as verification_request_booking_source,
|
||||
chose_deposit as chose_deposit,
|
||||
|
|
|
|||
|
|
@ -1527,6 +1527,10 @@ models:
|
|||
data_type: date
|
||||
description: "The estimated date on which the guest finished the guest journey."
|
||||
|
||||
- name: days_to_complete_verification
|
||||
data_type: numeric
|
||||
description: "Number of days it took to complete the verification."
|
||||
|
||||
- name: link_used_date_utc
|
||||
data_type: date
|
||||
description: "The date on which the guest used the link for the verification."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue