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

chore: add incomingWebhooks feature flag (#5647)

https://linear.app/unleash/issue/2-1683/feature-flag-add-a-new-incomingwebhooks-feature-flag-for-this-feature

Adds a new `incomingWebhooks` feature flag.
This commit is contained in:
Nuno Góis 2023-12-15 10:15:52 +00:00 committed by GitHub
parent 0726887bb8
commit f84fa81ebe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View File

@ -68,6 +68,7 @@ export type UiFlags = {
featureSearchAPI?: boolean;
featureSearchFrontend?: boolean;
newStrategyConfiguration?: boolean;
incomingWebhooks?: boolean;
};
export interface IVersionInfo {

View File

@ -86,6 +86,7 @@ exports[`should create default config 1`] = `
"featuresExportImport": true,
"filterInvalidClientMetrics": false,
"googleAuthEnabled": false,
"incomingWebhooks": false,
"maintenanceMode": false,
"messageBanner": {
"enabled": false,

View File

@ -32,7 +32,8 @@ export type IFlagKey =
| 'detectSegmentUsageInChangeRequests'
| 'stripClientHeadersOn304'
| 'newStrategyConfiguration'
| 'stripHeadersOnAPI';
| 'stripHeadersOnAPI'
| 'incomingWebhooks';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -142,6 +143,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_NEW_STRATEGY_CONFIGURATION,
false,
),
incomingWebhooks: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_INCOMING_WEBHOOKS,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {