Merged PR 4875: Adding total_listings_with_active_product_bundle_with_paid_service

# Description

Adding total_listings_with_active_product_bundle_with_paid_service which weirdly enough it was already on the schemas but not in the model.
This is the same value that's going to be displayed on the new offered services tab

# 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.
- [ ] I have checked for DRY opportunities with other models and docs.
- [ ] I've picked the right materialization for the affected models.

# Other

- [ ] Check if a full-refresh is required after this PR is merged.

Adding total_listings_with_active_product_bundle_with_paid_service

Related work items: #28640
This commit is contained in:
Joaquin Ossa 2025-04-01 14:04:32 +00:00
commit 7a09fd344d
2 changed files with 3 additions and 0 deletions

View file

@ -140,6 +140,7 @@ select
total_listings,
total_active_listings,
total_listings_with_product_bundle_with_paid_service,
total_listings_with_active_product_bundle_with_paid_service,
case when total_active_listings > 0 then 1 else 0 end as has_active_listings,
case
when total_listings_with_product_bundle_with_paid_service > 0 then 1 else 0

View file

@ -22,6 +22,8 @@ select
total_active_listings as total_active_listings,
total_listings_with_product_bundle_with_paid_service
as total_listings_with_product_bundle_with_paid_service,
total_listings_with_active_product_bundle_with_paid_service
as total_listings_with_active_product_bundle_with_paid_service,
has_active_listings as has_active_listings,
has_listings_with_paid_service_applied as has_listings_with_paid_service_applied,
has_listings_with_active_paid_service_applied