data-dwh-dbt-project/models/intermediate/core
Pablo Martin 92b144d78e Merged PR 5357: Adapt vr_check_in_cover model for Guest Products
# Description

This PR prepares the existing `int_core__vr_check_in_cover` model for the activation of the Guest Products feature flag.

It creates a second logic path which identifies VRs that have CIH in them ~~through product bundles~~ through looking at `stg_core__verification_request_to_guest_product `, and unions it with the old stuff.

The new CTE only gets called after the FF gets activated. This is defined in a var that we will need to adjust depending on when do we really activate the FF.

Note that these items are still pending:
- update the var to the right value once Lawrence pulls the trigger.
- clarify what the hell happens with CIH being "pushed" or not to ALL old dash hosts. This PR currently assumes this will NOT happen. If it will happen, we will need to change things.

# 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: #30165
2025-06-02 14:22:58 +00:00
..
int_core__ab_test_monitoring_guest_journey.sql
int_core__ab_test_tracking_guest_journey.sql
int_core__accommodation.sql
int_core__accommodation_to_product_bundle.sql
int_core__accommodations_activity.sql
int_core__active_property_managers_system.sql
int_core__booking_charge_events.sql
int_core__booking_details.sql
int_core__booking_service_detail.sql
int_core__booking_to_product_bundle.sql
int_core__booking_to_service.sql
int_core__bookings.sql
int_core__check_in_cover_listings.sql
int_core__check_in_cover_prices.sql
int_core__check_in_cover_users.sql
int_core__check_in_hero_users.sql
int_core__country.sql
int_core__deal.sql
int_core__duplicate_bookings.sql
int_core__guest_journey_payments.sql
int_core__guest_product_payments_v2.sql
int_core__guest_product_price_plans.sql
int_core__guest_products.sql
int_core__guest_satisfaction_responses.sql
int_core__host_booking_fees.sql
int_core__invoicing_price_plans_per_month.sql
int_core__new_dash_deal_since_date.sql
int_core__new_dash_user_overview.sql
int_core__new_dash_users.sql
int_core__payaway.sql
int_core__payaway_per_month_user.sql
int_core__payments.sql
int_core__price_plans.sql
int_core__product_service_billing_item.sql
int_core__product_service_to_price.sql
int_core__protection_plan_billing_item.sql
int_core__protection_plan_cover.sql
int_core__protection_plan_to_price.sql
int_core__screen_and_protect_users.sql
int_core__unified_user.sql
int_core__unique_accommodation_to_user.sql
int_core__user_host.sql
int_core__user_product_bundle.sql
int_core__user_product_bundle_contains_services.sql
int_core__user_role.sql
int_core__verification_product_payments.sql
int_core__verification_request_booking_source.sql
int_core__verification_request_completed_date.sql
int_core__verification_request_completeness.sql
int_core__verification_requests.sql
int_core__vr_check_in_cover.sql
int_core__waiver_fees.sql
schema.yml