Merged PR 3517: new dash new data
# Description Add host email and date when joined new dash for report # 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. new dash new data Related work items: #23915
This commit is contained in:
commit
0af8949f67
4 changed files with 25 additions and 1 deletions
|
|
@ -16,11 +16,13 @@ with
|
|||
|
||||
select
|
||||
upb.id_user_host,
|
||||
uh.id_deal,
|
||||
uh.new_dash_version as user_migration_phase,
|
||||
uh.user_in_new_dash_since_date_utc as user_estimated_migration_date_utc,
|
||||
uh.company_name,
|
||||
uh.first_name,
|
||||
uh.last_name,
|
||||
uh.email,
|
||||
uh.account_currency_iso4217 as account_currency,
|
||||
count(distinct upb.id_user_product_bundle) as total_user_product_bundles,
|
||||
count(
|
||||
|
|
@ -72,16 +74,18 @@ with
|
|||
left join
|
||||
int_core__accommodation_to_product_bundle atpb
|
||||
on upb.id_user_product_bundle = atpb.id_user_product_bundle
|
||||
group by 1, 2, 3, 4, 5, 6, 7
|
||||
group by 1, 2, 3, 4, 5, 6, 7, 8, 9
|
||||
|
||||
)
|
||||
select
|
||||
id_user_host,
|
||||
id_deal,
|
||||
user_migration_phase,
|
||||
user_estimated_migration_date_utc,
|
||||
company_name,
|
||||
first_name,
|
||||
last_name,
|
||||
email,
|
||||
account_currency,
|
||||
total_user_product_bundles,
|
||||
total_active_user_product_bundles,
|
||||
|
|
|
|||
|
|
@ -2398,6 +2398,10 @@ models:
|
|||
- not_null
|
||||
- unique
|
||||
|
||||
- name: id_deal
|
||||
data_type: character varying
|
||||
description: The ID for the Deal.
|
||||
|
||||
- name: user_migration_phase
|
||||
data_type: string
|
||||
description: |
|
||||
|
|
@ -2428,6 +2432,11 @@ models:
|
|||
description: |
|
||||
Information about the host user.
|
||||
|
||||
- name: email
|
||||
data_type: string
|
||||
description: |
|
||||
Information about the host user.
|
||||
|
||||
- name: account_currency
|
||||
data_type: string
|
||||
description: |
|
||||
|
|
|
|||
|
|
@ -4,11 +4,13 @@ with
|
|||
)
|
||||
select
|
||||
id_user_host as id_user_host,
|
||||
id_deal as id_deal,
|
||||
user_migration_phase as user_migration_phase,
|
||||
user_estimated_migration_date_utc as user_estimated_migration_date_utc,
|
||||
company_name as company_name,
|
||||
first_name as first_name,
|
||||
last_name as last_name,
|
||||
email as email,
|
||||
account_currency as account_currency,
|
||||
total_user_product_bundles as total_user_product_bundles,
|
||||
total_active_user_product_bundles as total_active_user_product_bundles,
|
||||
|
|
|
|||
|
|
@ -1134,6 +1134,10 @@ models:
|
|||
- not_null
|
||||
- unique
|
||||
|
||||
- name: id_deal
|
||||
data_type: character varying
|
||||
description: The ID for the Deal.
|
||||
|
||||
- name: user_migration_phase
|
||||
data_type: string
|
||||
description: |
|
||||
|
|
@ -1164,6 +1168,11 @@ models:
|
|||
description: |
|
||||
Information about the host user.
|
||||
|
||||
- name: email
|
||||
data_type: string
|
||||
description: |
|
||||
Information about the host user.
|
||||
|
||||
- name: account_currency
|
||||
data_type: string
|
||||
description: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue