1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-04 13:48:56 +02:00

chore: add integrationEvents feature flag (#7602)

https://linear.app/unleash/issue/2-2434/add-a-new-integrationevents-feature-flag

Adds a new `integrationEvents` feature flag.
This commit is contained in:
Nuno Góis 2024-07-17 08:25:47 +01:00 committed by GitHub
parent 92a9b403e8
commit 4fb5469cb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View File

@ -127,6 +127,7 @@ exports[`should create default config 1`] = `
"flagCreator": false,
"googleAuthEnabled": false,
"insightsV2": false,
"integrationEvents": false,
"killInsightsUI": false,
"killScheduledChangeRequestCache": false,
"maintenanceMode": false,

View File

@ -67,7 +67,8 @@ export type IFlagKey =
| 'cleanApiTokenWhenOrphaned'
| 'allowOrphanedWildcardTokens'
| 'removeUnsafeInlineStyleSrc'
| 'insightsV2';
| 'insightsV2'
| 'integrationEvents';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -324,6 +325,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_INSIGHTS_V2,
false,
),
integrationEvents: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_INTEGRATION_EVENTS,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {

View File

@ -57,6 +57,7 @@ process.nextTick(async () => {
resourceLimits: true,
extendedMetrics: true,
insightsV2: true,
integrationEvents: true,
},
},
authentication: {