From e71cde0d63f7d91a2dba94c1b1b11b541c2202bb Mon Sep 17 00:00:00 2001 From: Joaquin Ossa Date: Tue, 21 Jan 2025 10:12:46 +0100 Subject: [PATCH] PMS in new dash reporting --- .../reporting/core/core__new_dash_user_overview.sql | 2 ++ models/reporting/core/schema.yml | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/models/reporting/core/core__new_dash_user_overview.sql b/models/reporting/core/core__new_dash_user_overview.sql index a590328..1a011d2 100644 --- a/models/reporting/core/core__new_dash_user_overview.sql +++ b/models/reporting/core/core__new_dash_user_overview.sql @@ -8,6 +8,8 @@ select has_user_moved_from_old_dash as has_user_moved_from_old_dash, user_migration_phase as user_migration_phase, user_estimated_migration_date_utc as user_estimated_migration_date_utc, + has_active_pms as has_active_pms, + active_pms_list as active_pms_list, company_name as company_name, first_name as first_name, last_name as last_name, diff --git a/models/reporting/core/schema.yml b/models/reporting/core/schema.yml index 3aafcfe..c852a6b 100644 --- a/models/reporting/core/schema.yml +++ b/models/reporting/core/schema.yml @@ -1158,6 +1158,19 @@ models: data_tests: - not_null + - name: has_active_pms + data_type: boolean + description: | + Does the host have an active associated PMS. + data_tests: + - not_null + + - name: active_pms_list + data_type: string + description: | + Name of the active PMS associated with the host. It can have more than + one PMS associated with it. It can be null if it doesn't have any PMS associated. + - name: company_name data_type: string description: |