diff --git a/dbt_project.yml b/dbt_project.yml index e61362d..85f5b16 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -68,6 +68,10 @@ vars: # New Dash First Invoicing Date. This is the first date considered for New Dash invoicing. "new_dash_first_invoicing_date": "'2024-12-31'" + # The timestamp of when the Guest Squad activated the Feature Flag that + # activated the big bang refactor of the Guest Products logic. + "guest_products_feature_flag_activation_timestamp": "'2025-06-08T00:00:00Z'" + # A distant future date to use as a default when cutoff values are missing. "end_of_time": "'2050-12-31'" diff --git a/models/intermediate/core/int_core__guest_product_payments_v2.sql b/models/intermediate/core/int_core__guest_product_payments_v2.sql index 9fd6cae..ca7df0b 100644 --- a/models/intermediate/core/int_core__guest_product_payments_v2.sql +++ b/models/intermediate/core/int_core__guest_product_payments_v2.sql @@ -1,5 +1,4 @@ {% set check_in_cover_as_id_verification_payment = "5" %} -{% set cut_off_date_check_in_cover_as_id_verification_payment = "'2025-06-08'" %} {{ config(materialized="table") }} with @@ -8,7 +7,7 @@ with from {{ ref("stg_core__verification_to_payment") }} where created_date_utc - <= date({{ cut_off_date_check_in_cover_as_id_verification_payment }}) + <= date({{ var("guest_products_feature_flag_activation_timestamp") }}) and id_verification_payment_type = {{ check_in_cover_as_id_verification_payment }} ), @@ -20,7 +19,7 @@ with from {{ ref("stg_core__verification") }} where created_date_utc - <= date({{ cut_off_date_check_in_cover_as_id_verification_payment }}) + <= date({{ var("guest_products_feature_flag_activation_timestamp") }}) ), stg_core__verification_request as ( select * from {{ ref("stg_core__verification_request") }}