data-dwh-dbt-project/models
Oriol Roqué Paniagua 89dd8845cc Merged PR 2575: Accommodation metrics per customer segmentation
# Description

Modifies `int_core__mtd_accommodation_metrics` to include the customer segmentation based on listings. `schema.yaml` is also affected including new fields and tests. Hardcoded `int_core__mtd_vs_previous_year_metrics` to avoid propagating this upwards and messing up with the data display.

Overall, follows a similar strategy as we did for Booking, Guest Journey and Deal metrics. For reference, here's [the previous PR on Deal](https://guardhog.visualstudio.com/Data/_git/data-dwh-dbt-project/pullrequest/2534). I noticed that I mixed the schema tests of Deals and Accommodations, this PR should fix both.

# 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: #19325
2024-08-19 09:03:42 +00:00
..
intermediate Merged PR 2575: Accommodation metrics per customer segmentation 2024-08-19 09:03:42 +00:00
reporting Fixed models for mtd_aggregated_metrics 2024-08-08 17:06:11 +02:00
staging Merged PR 2564: New model for verification_to_address_validation 2024-08-16 09:21:31 +00:00
doc_blocks.md improve stg_stripe__charges 2024-02-23 16:45:19 +01:00