mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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;
 | 
					    featureSearchAPI?: boolean;
 | 
				
			||||||
    featureSearchFrontend?: boolean;
 | 
					    featureSearchFrontend?: boolean;
 | 
				
			||||||
    newStrategyConfiguration?: boolean;
 | 
					    newStrategyConfiguration?: boolean;
 | 
				
			||||||
 | 
					    incomingWebhooks?: boolean;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export interface IVersionInfo {
 | 
					export interface IVersionInfo {
 | 
				
			||||||
 | 
				
			|||||||
@ -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,
 | 
				
			||||||
 | 
				
			|||||||
@ -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 = {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user