data-dwh-dbt-project/models/reporting
Oriol Roqué Paniagua a8927b7a44 Merged PR 5463: New Dash user categorisation + revamp model
# Description

Fixes:
* There was a data quality issue in which active listings with bundles were showing more listings than the total active listings. This has been fixed, plus a bunch of tests have been added to make sure this does not happen again.
* There's a field that reaches the 63 character limit. I modified "paid" per "upgraded" which reduces this to intermediate model; however in reporting I need to keep as is to avoid breaking PBI. I did change the name of the field in the schema so tests/docs work well and explicitly mention this in the doc. This will need adaptation but can be done in the future.
* There was tons of dead code tagged as to be deleted that was not deleted, not sure why or when. Anyway this is dropped now. It's not used in PBI except for the fact that columns are dropped in the data model, so we might have a bit of down time to just remove these.
* Few fields were not displayed correctly in dbt docs.

What's new:
* New user categorisation as an alert-based system. This can be enhanced in the future but so far it covers hell of a lot of cases. This also includes data quality alerts (deal not in HS, or account defaults to MVP launch).
* MVP Launch date moved to project yaml since it's a very standard date.

# 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: #30407
2025-06-13 14:05:30 +00:00
..
athena change "tests:" to "data_tests:" 2025-01-13 16:00:35 +01:00
check_in_hero cih api fix 2025-04-09 15:30:17 +02:00
core Merged PR 5463: New Dash user categorisation + revamp model 2025-06-13 14:05:30 +00:00
edeposit Adding id_deal 2025-03-18 12:06:25 +01:00
general Merged PR 5381: Removes multi-user test on New Dash onboarding 2025-06-04 08:08:40 +00:00
kpis Update reporting model 2025-04-02 12:05:01 +02:00
resolutions Calculator changes 2025-02-28 12:19:24 +01:00
screen_and_protect adding id_deal to api models 2025-03-19 09:23:23 +01:00
xero Addressed comments 2025-06-12 09:22:22 +02:00
exposures.yml stay disrupt exposure 2025-06-13 09:38:30 +02:00