2024-08-22 12:10:25 +00:00
|
|
|
/*
|
|
|
|
|
Macro: get_new_dash_migration_phases_configuration
|
|
|
|
|
|
|
|
|
|
Provides a general configuration for the different phases of the
|
|
|
|
|
New Dash migration. Each phase is identifiable via a phase_name,
|
|
|
|
|
that is the "expected display" for users. The assumption is that
|
|
|
|
|
each user migration is identified via claim_type. Lastly, we
|
|
|
|
|
apply here a hardcode of when the deployment was carried out.
|
|
|
|
|
|
|
|
|
|
Important note: if a user migrates once a phase has started, we
|
|
|
|
|
will not be able to tell when that happened. However, it is likely
|
|
|
|
|
that other indicators will provide an estimate. For example:
|
|
|
|
|
|
|
|
|
|
The migration A happens on 1st July 2024.
|
|
|
|
|
User A is migrated on 1st July 2024 (as expected)
|
|
|
|
|
User B is migrated on 10th July 2024 (not expected)
|
|
|
|
|
|
|
|
|
|
It is likely that User B won't have Bookings from new dash
|
|
|
|
|
until it's migrated. So this migration date should be considered
|
|
|
|
|
as a hard, lower-limit of dates.
|
2024-09-16 09:34:44 +00:00
|
|
|
|
|
|
|
|
If a user satisfies more than one valid claims, in order to ensure
|
|
|
|
|
that the good date is considered we use the claim_enforcement_priority
|
|
|
|
|
value to force that a certain claim type will have precedence over
|
|
|
|
|
another. The lower the value, the more priority.
|
2024-08-22 12:10:25 +00:00
|
|
|
*/
|
|
|
|
|
{% macro get_new_dash_migration_phases_config() %}
|
|
|
|
|
{% set migration_phases = [
|
|
|
|
|
{
|
2024-09-16 07:57:41 +00:00
|
|
|
"phase_name": "MVP",
|
|
|
|
|
"claim_type": "KYGMVP",
|
|
|
|
|
"default_deployment_date": "2024-07-30",
|
2024-09-20 10:42:12 +00:00
|
|
|
"claim_enforcement_priority": 2,
|
2024-09-16 07:57:41 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"phase_name": "MVP",
|
|
|
|
|
"claim_type": "MVPMIGRATEDUSER",
|
|
|
|
|
"default_deployment_date": "2024-09-10",
|
2024-09-20 10:42:12 +00:00
|
|
|
"claim_enforcement_priority": 1,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"phase_name": "V2",
|
|
|
|
|
"claim_type": "KYGMOVEDATE",
|
|
|
|
|
"default_deployment_date": "2024-10-08",
|
2024-09-16 09:34:44 +00:00
|
|
|
"claim_enforcement_priority": 0,
|
2024-09-16 07:57:41 +00:00
|
|
|
},
|
2024-08-22 12:10:25 +00:00
|
|
|
] %}
|
|
|
|
|
{{ return(migration_phases) }}
|
2024-09-16 07:57:41 +00:00
|
|
|
{% endmacro %}
|