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:
parent
0726887bb8
commit
f84fa81ebe
@ -68,6 +68,7 @@ export type UiFlags = {
|
||||
featureSearchAPI?: boolean;
|
||||
featureSearchFrontend?: boolean;
|
||||
newStrategyConfiguration?: boolean;
|
||||
incomingWebhooks?: boolean;
|
||||
};
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
@ -86,6 +86,7 @@ exports[`should create default config 1`] = `
|
||||
"featuresExportImport": true,
|
||||
"filterInvalidClientMetrics": false,
|
||||
"googleAuthEnabled": false,
|
||||
"incomingWebhooks": false,
|
||||
"maintenanceMode": false,
|
||||
"messageBanner": {
|
||||
"enabled": false,
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user