Merged PR 3597: Adds new API roles as hosts
# Description This fixes the data alert raised in today execution. We have the first user with the role `ScreenAndProtectApi`. Changes: * Adds `CancellationApi`, `CheckInHeroApi` and `ScreenAndProtectApi` as accepted roles for `int_core__user_host` computation * Adds the new `ScreenAndProtectApi` role as accepted values in the `int_core__user_role` model # 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: #24475
This commit is contained in:
parent
23cc5459e3
commit
23105d9f1b
2 changed files with 7 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{% set host_roles = "('EDEPOSIT', 'HOST', 'KNOWYOURGUEST', 'PLATFORM', 'PROPERTYVERIFICATIONMANAGER', 'SCREENINGAPI')" %}
|
||||
{% set host_roles = "('EDEPOSIT', 'HOST', 'KNOWYOURGUEST', 'PLATFORM', 'PROPERTYVERIFICATIONMANAGER', 'SCREENINGAPI', 'CANCELLATIONAPI', 'CHECKINHEROAPI','SCREENANDPROTECTAPI')" %}
|
||||
{% set kyg_claim_types = "('KYGREGISTRATIONSIGNUPTYPE','KYGREGISTRATIONINTEGRATIONTYPENAME','KYGMVP', 'NEWDASHVERSION')" %}
|
||||
|
||||
{{ config(materialized="table", unique_key="id_user_host") }}
|
||||
|
|
|
|||
|
|
@ -1692,6 +1692,7 @@ models:
|
|||
- PropertyVerificationManager
|
||||
- CheckInHeroApi
|
||||
- CancellationApi
|
||||
- ScreenAndProtectAPI
|
||||
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
|
|
@ -1723,6 +1724,7 @@ models:
|
|||
- PropertyVerificationManager
|
||||
- CheckInHeroApi
|
||||
- CancellationApi
|
||||
- ScreenAndProtectApi
|
||||
|
||||
- name: int_core__user_host
|
||||
description: |
|
||||
|
|
@ -1738,10 +1740,14 @@ models:
|
|||
- KnowYourGuest
|
||||
- ScreeningAPI
|
||||
- PropertyVerificationManager
|
||||
- CancellationApi
|
||||
- CheckInHeroApi
|
||||
- ScreenAndProtectApi
|
||||
Additionally, any user that has any of these claim types will be considered as a Host:
|
||||
- KygRegistrationSignUpType
|
||||
- KygRegistrationIntegrationTypeName
|
||||
- KygMvp
|
||||
- NewDashVersion
|
||||
Lastly, in case a user satisfies multiple conditions, it will only appear once in this table.
|
||||
|
||||
columns:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue