1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

#4205: add flag for emitting potentially stale events (#4237)

This commit is contained in:
Thomas Heartman 2023-07-13 14:57:34 +02:00 committed by GitHub
parent 85bd7845b0
commit 00ca1d7186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View File

@ -77,6 +77,7 @@ exports[`should create default config 1`] = `
"disableNotifications": false,
"embedProxy": true,
"embedProxyFrontend": true,
"emitPotentiallyStaleEvents": false,
"featuresExportImport": true,
"googleAuthEnabled": false,
"maintenanceMode": false,
@ -112,6 +113,7 @@ exports[`should create default config 1`] = `
"disableNotifications": false,
"embedProxy": true,
"embedProxyFrontend": true,
"emitPotentiallyStaleEvents": false,
"featuresExportImport": true,
"googleAuthEnabled": false,
"maintenanceMode": false,

View File

@ -26,7 +26,8 @@ export type IFlagKey =
| 'strategySplittedButton'
| 'strategyVariant'
| 'newProjectLayout'
| 'slackAppAddon';
| 'slackAppAddon'
| 'emitPotentiallyStaleEvents';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -123,6 +124,11 @@ const flags: IFlags = {
process.env.UNLEASH_SLACK_APP_ADDON,
false,
),
emitPotentiallyStaleEvents: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_EMIT_POTENTIALLY_STALE_EVENTS,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {

View File

@ -42,6 +42,7 @@ process.nextTick(async () => {
strategySplittedButton: true,
strategyVariant: true,
newProjectLayout: true,
emitPotentiallyStaleEvents: true,
},
},
authentication: {