mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
chore: add detect segment usage in CRs flag (#5302)
As the title says, this PR adds a flag to unleash for detecting segment usage in CRs.
This commit is contained in:
parent
a5288ae0b1
commit
ebf3102244
@ -77,6 +77,7 @@ exports[`should create default config 1`] = `
|
|||||||
"customRootRolesKillSwitch": false,
|
"customRootRolesKillSwitch": false,
|
||||||
"demo": false,
|
"demo": false,
|
||||||
"dependentFeatures": false,
|
"dependentFeatures": false,
|
||||||
|
"detectSegmentUsageInChangeRequests": false,
|
||||||
"disableBulkToggle": false,
|
"disableBulkToggle": false,
|
||||||
"disableEnvsOnRevive": false,
|
"disableEnvsOnRevive": false,
|
||||||
"disableMetrics": false,
|
"disableMetrics": false,
|
||||||
|
@ -36,7 +36,8 @@ export type IFlagKey =
|
|||||||
| 'featureSwitchRefactor'
|
| 'featureSwitchRefactor'
|
||||||
| 'featureSearchAPI'
|
| 'featureSearchAPI'
|
||||||
| 'featureSearchFrontend'
|
| 'featureSearchFrontend'
|
||||||
| 'scheduledConfigurationChanges';
|
| 'scheduledConfigurationChanges'
|
||||||
|
| 'detectSegmentUsageInChangeRequests';
|
||||||
|
|
||||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||||
|
|
||||||
@ -172,6 +173,11 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_SCHEDULED_CONFIGURATION_CHANGES,
|
process.env.UNLEASH_EXPERIMENTAL_SCHEDULED_CONFIGURATION_CHANGES,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
|
detectSegmentUsageInChangeRequests: parseEnvVarBoolean(
|
||||||
|
process.env
|
||||||
|
.UNLEASH_EXPERIMENTAL_DETECT_SEGMENT_USAGE_IN_CHANGE_REQUESTS,
|
||||||
|
false,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||||
|
Loading…
Reference in New Issue
Block a user