Merged PR 5261: Adds contract signed month in onboarding reporting

# Description

Adds contract signed month + not null test

# 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.

Related work items: #30249
This commit is contained in:
Oriol Roqué Paniagua 2025-05-20 05:53:30 +00:00
parent 56aeb701cd
commit 747fa1b731
2 changed files with 11 additions and 0 deletions

View file

@ -21,6 +21,7 @@ select
count_upgraded_programs_at_listing_level, count_upgraded_programs_at_listing_level,
count_active_upgraded_programs_at_active_listing_level, count_active_upgraded_programs_at_active_listing_level,
contract_signed_date_utc, contract_signed_date_utc,
date_trunc('month', contract_signed_date_utc)::date as contract_signed_month,
live_date_utc, live_date_utc,
cancellation_date_utc, cancellation_date_utc,
backend_account_creation_utc, backend_account_creation_utc,

View file

@ -2868,6 +2868,16 @@ models:
data_type: date data_type: date
description: | description: |
Date in which the contract was signed according to HubSpot. Date in which the contract was signed according to HubSpot.
data_tests:
- not_null
- name: contract_signed_month
data_type: date
description: |
First day of the month in which the contract was signed according
to HubSpot.
data_tests:
- not_null
- name: live_date_utc - name: live_date_utc
data_type: date data_type: date