1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-31 13:47:02 +02:00

chore: Add PAYG trial events flag to Unleash (#10336)

Pretty much what it says on the tin: add PAYG trial events flag to
control the upcoming trial events
This commit is contained in:
Thomas Heartman 2025-07-09 15:56:01 +02:00 committed by GitHub
parent 3ea30eb7a1
commit e27bd74dcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -63,6 +63,7 @@ export type IFlagKey =
| 'improvedJsonDiff'
| 'crDiffView'
| 'changeRequestApproverEmails'
| 'paygTrialEvents'
| 'eventGrouping';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -296,6 +297,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_EVENT_GROUPING,
false,
),
paygTrialEvents: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_PAYG_TRIAL_EVENTS,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {

View File

@ -58,6 +58,7 @@ process.nextTick(async () => {
impactMetrics: true,
crDiffView: true,
eventGrouping: true,
paygTrialEvents: true,
},
},
authentication: {