Merged PR 3205: Deprecate edeposit__guesty_verifications
# Description This PR deletes this model and adjusts exposures. Should be merged once this PBI PR is merged: https://guardhog.visualstudio.com/Data/_git/data-pbi-reports/pullrequest/3204. # 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: #22186
This commit is contained in:
commit
91cac6a441
3 changed files with 1 additions and 68 deletions
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
This model here should not exist and will be deprecated. Downstream dependencies
|
||||
should switch to reading from the new `athena__verification_fees`. The model
|
||||
remains here as pointer to the new one to give downstream dependencies time to switch.
|
||||
*/
|
||||
with athena__verification_fees as (select * from {{ ref("athena__verification_fees") }})
|
||||
select *
|
||||
from athena__verification_fees
|
||||
|
|
@ -149,62 +149,3 @@ models:
|
|||
description: "Date of checkout for the booking"
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: edeposit__guesty_verifications
|
||||
description: "This table shows all verification for Guesty.
|
||||
The charged fee is 2GBP per booked night if booking is approved
|
||||
(considered 1 night when the checkin and checkout are on the same day),
|
||||
to be charged on checkout."
|
||||
latest_version: 1
|
||||
versions:
|
||||
- v: 1
|
||||
deprecation_date: "2024-10-15T00:00:00Z"
|
||||
config:
|
||||
alias: edeposit__guesty_verifications
|
||||
columns:
|
||||
- name: id_verification
|
||||
data_type: text
|
||||
description: "unique Superhog generated id for this verification"
|
||||
tests:
|
||||
- unique
|
||||
- not_null
|
||||
|
||||
- name: id_booking
|
||||
data_type: text
|
||||
description: "unique Superhog generated id for a booking.
|
||||
note that this could be duplicated and both will be charged,
|
||||
it's up to the user to not generate or cancel duplicate verifications"
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: verification_status
|
||||
data_type: text
|
||||
description: "status of the verification"
|
||||
|
||||
- name: is_cancelled
|
||||
data_type: boolean
|
||||
description: "indicates if the booking has been cancelled or not."
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: ok_status_fee_in_gbp
|
||||
data_type: integer
|
||||
description: "total fee charged on checkout, this is only charged for approved verifications"
|
||||
tests:
|
||||
- not_null
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: true
|
||||
where: is_cancelled = false and verification_status = 'Approved'
|
||||
|
||||
- name: created_date_utc
|
||||
data_type: date
|
||||
description: "Date of creation of the verification in the system"
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: checkout_date_utc
|
||||
data_type: date
|
||||
description: "Date of checkout for the booking"
|
||||
tests:
|
||||
- not_null
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ exposures:
|
|||
|
||||
depends_on:
|
||||
- ref('xero__net_fees_by_deal')
|
||||
- ref('edeposit__guesty_verifications')
|
||||
- ref('athena__verification_fees')
|
||||
- ref('edeposit__verification_fees')
|
||||
|
||||
owner:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue