mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
chore: remove emitPotentiallyStaleEvents flag (#4537)
This commit is contained in:
parent
6cefb6021e
commit
68273da213
@ -78,7 +78,6 @@ exports[`should create default config 1`] = `
|
|||||||
"disableNotifications": false,
|
"disableNotifications": false,
|
||||||
"embedProxy": true,
|
"embedProxy": true,
|
||||||
"embedProxyFrontend": true,
|
"embedProxyFrontend": true,
|
||||||
"emitPotentiallyStaleEvents": false,
|
|
||||||
"featuresExportImport": true,
|
"featuresExportImport": true,
|
||||||
"filterInvalidClientMetrics": false,
|
"filterInvalidClientMetrics": false,
|
||||||
"frontendNavigationUpdate": false,
|
"frontendNavigationUpdate": false,
|
||||||
@ -115,7 +114,6 @@ exports[`should create default config 1`] = `
|
|||||||
"disableNotifications": false,
|
"disableNotifications": false,
|
||||||
"embedProxy": true,
|
"embedProxy": true,
|
||||||
"embedProxyFrontend": true,
|
"embedProxyFrontend": true,
|
||||||
"emitPotentiallyStaleEvents": false,
|
|
||||||
"featuresExportImport": true,
|
"featuresExportImport": true,
|
||||||
"filterInvalidClientMetrics": false,
|
"filterInvalidClientMetrics": false,
|
||||||
"frontendNavigationUpdate": false,
|
"frontendNavigationUpdate": false,
|
||||||
|
@ -44,7 +44,6 @@ test('Should only store events for potentially stale on', async () => {
|
|||||||
flagResolver: { isEnabled: () => true },
|
flagResolver: { isEnabled: () => true },
|
||||||
experimental: {
|
experimental: {
|
||||||
...(config.experimental ?? {}),
|
...(config.experimental ?? {}),
|
||||||
emitPotentiallyStaleEvents: true,
|
|
||||||
},
|
},
|
||||||
} as unknown as IUnleashConfig,
|
} as unknown as IUnleashConfig,
|
||||||
{} as ISegmentService,
|
{} as ISegmentService,
|
||||||
|
@ -2063,7 +2063,6 @@ class FeatureToggleService {
|
|||||||
async updatePotentiallyStaleFeatures(): Promise<void> {
|
async updatePotentiallyStaleFeatures(): Promise<void> {
|
||||||
const potentiallyStaleFeatures =
|
const potentiallyStaleFeatures =
|
||||||
await this.featureToggleStore.updatePotentiallyStaleFeatures();
|
await this.featureToggleStore.updatePotentiallyStaleFeatures();
|
||||||
if (this.flagResolver.isEnabled('emitPotentiallyStaleEvents')) {
|
|
||||||
if (potentiallyStaleFeatures.length > 0) {
|
if (potentiallyStaleFeatures.length > 0) {
|
||||||
return this.eventStore.batchStore(
|
return this.eventStore.batchStore(
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
@ -2084,6 +2083,5 @@ class FeatureToggleService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
export default FeatureToggleService;
|
export default FeatureToggleService;
|
||||||
|
@ -22,7 +22,6 @@ export type IFlagKey =
|
|||||||
| 'advancedPlayground'
|
| 'advancedPlayground'
|
||||||
| 'strategyVariant'
|
| 'strategyVariant'
|
||||||
| 'slackAppAddon'
|
| 'slackAppAddon'
|
||||||
| 'emitPotentiallyStaleEvents'
|
|
||||||
| 'configurableFeatureTypeLifetimes'
|
| 'configurableFeatureTypeLifetimes'
|
||||||
| 'filterInvalidClientMetrics'
|
| 'filterInvalidClientMetrics'
|
||||||
| 'frontendNavigationUpdate'
|
| 'frontendNavigationUpdate'
|
||||||
@ -106,10 +105,6 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_SLACK_APP_ADDON,
|
process.env.UNLEASH_SLACK_APP_ADDON,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
emitPotentiallyStaleEvents: parseEnvVarBoolean(
|
|
||||||
process.env.UNLEASH_EXPERIMENTAL_EMIT_POTENTIALLY_STALE_EVENTS,
|
|
||||||
false,
|
|
||||||
),
|
|
||||||
configurableFeatureTypeLifetimes: parseEnvVarBoolean(
|
configurableFeatureTypeLifetimes: parseEnvVarBoolean(
|
||||||
process.env.UNLEASH_EXPERIMENTAL_CONFIGURABLE_FEATURE_TYPE_LIFETIMES,
|
process.env.UNLEASH_EXPERIMENTAL_CONFIGURABLE_FEATURE_TYPE_LIFETIMES,
|
||||||
false,
|
false,
|
||||||
|
@ -38,7 +38,6 @@ process.nextTick(async () => {
|
|||||||
anonymiseEventLog: false,
|
anonymiseEventLog: false,
|
||||||
responseTimeWithAppNameKillSwitch: false,
|
responseTimeWithAppNameKillSwitch: false,
|
||||||
strategyVariant: true,
|
strategyVariant: true,
|
||||||
emitPotentiallyStaleEvents: true,
|
|
||||||
slackAppAddon: true,
|
slackAppAddon: true,
|
||||||
configurableFeatureTypeLifetimes: true,
|
configurableFeatureTypeLifetimes: true,
|
||||||
frontendNavigationUpdate: true,
|
frontendNavigationUpdate: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user