1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-27 00:19:39 +01:00

chore(#4205): add flag for segmentChangeRequests (#4401)

This commit is contained in:
Thomas Heartman 2023-08-03 15:20:31 +02:00 committed by GitHub
parent 76fc25123f
commit cc9558689b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -96,6 +96,7 @@ exports[`should create default config 1`] = `
"personalAccessTokensKillSwitch": false,
"proPlanAutoCharge": false,
"responseTimeWithAppNameKillSwitch": false,
"segmentChangeRequests": false,
"slackAppAddon": false,
"strategyVariant": false,
"strictSchemaValidation": false,
@ -132,6 +133,7 @@ exports[`should create default config 1`] = `
"personalAccessTokensKillSwitch": false,
"proPlanAutoCharge": false,
"responseTimeWithAppNameKillSwitch": false,
"segmentChangeRequests": false,
"slackAppAddon": false,
"strategyVariant": false,
"strictSchemaValidation": false,

View File

@ -28,7 +28,8 @@ export type IFlagKey =
| 'configurableFeatureTypeLifetimes'
| 'filterInvalidClientMetrics'
| 'frontendNavigationUpdate'
| 'lastSeenByEnvironment';
| 'lastSeenByEnvironment'
| 'segmentChangeRequests';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -133,6 +134,10 @@ const flags: IFlags = {
process.env.LAST_SEEN_BY_ENVIRONMENT,
false,
),
segmentChangeRequests: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_SEGMENT_CHANGE_REQUESTS,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {

View File

@ -44,6 +44,7 @@ process.nextTick(async () => {
configurableFeatureTypeLifetimes: true,
frontendNavigationUpdate: true,
lastSeenByEnvironment: true,
segmentChangeRequests: true,
},
},
authentication: {