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:
parent
92a9b403e8
commit
4fb5469cb5
@ -127,6 +127,7 @@ exports[`should create default config 1`] = `
|
|||||||
"flagCreator": false,
|
"flagCreator": false,
|
||||||
"googleAuthEnabled": false,
|
"googleAuthEnabled": false,
|
||||||
"insightsV2": false,
|
"insightsV2": false,
|
||||||
|
"integrationEvents": false,
|
||||||
"killInsightsUI": false,
|
"killInsightsUI": false,
|
||||||
"killScheduledChangeRequestCache": false,
|
"killScheduledChangeRequestCache": false,
|
||||||
"maintenanceMode": false,
|
"maintenanceMode": false,
|
||||||
|
@ -67,7 +67,8 @@ export type IFlagKey =
|
|||||||
| 'cleanApiTokenWhenOrphaned'
|
| 'cleanApiTokenWhenOrphaned'
|
||||||
| 'allowOrphanedWildcardTokens'
|
| 'allowOrphanedWildcardTokens'
|
||||||
| 'removeUnsafeInlineStyleSrc'
|
| 'removeUnsafeInlineStyleSrc'
|
||||||
| 'insightsV2';
|
| 'insightsV2'
|
||||||
|
| 'integrationEvents';
|
||||||
|
|
||||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||||
|
|
||||||
@ -324,6 +325,10 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_INSIGHTS_V2,
|
process.env.UNLEASH_EXPERIMENTAL_INSIGHTS_V2,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
|
integrationEvents: parseEnvVarBoolean(
|
||||||
|
process.env.UNLEASH_EXPERIMENTAL_INTEGRATION_EVENTS,
|
||||||
|
false,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||||
|
@ -57,6 +57,7 @@ process.nextTick(async () => {
|
|||||||
resourceLimits: true,
|
resourceLimits: true,
|
||||||
extendedMetrics: true,
|
extendedMetrics: true,
|
||||||
insightsV2: true,
|
insightsV2: true,
|
||||||
|
integrationEvents: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
authentication: {
|
authentication: {
|
||||||
|
Loading…
Reference in New Issue
Block a user