1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +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; featureSearchAPI?: boolean;
featureSearchFrontend?: boolean; featureSearchFrontend?: boolean;
newStrategyConfiguration?: boolean; newStrategyConfiguration?: boolean;
incomingWebhooks?: boolean;
}; };
export interface IVersionInfo { export interface IVersionInfo {

View File

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

View File

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