mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
chore: remove the addonUsageMetrics flag (#8590)
This commit is contained in:
parent
095a82569c
commit
a1c98c4400
@ -94,12 +94,10 @@ export default abstract class Addon {
|
|||||||
integrationEvent: IntegrationEventWriteModel,
|
integrationEvent: IntegrationEventWriteModel,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
await this.integrationEventsService.registerEvent(integrationEvent);
|
await this.integrationEventsService.registerEvent(integrationEvent);
|
||||||
if (this.flagResolver.isEnabled('addonUsageMetrics')) {
|
this.eventBus.emit(ADDON_EVENTS_HANDLED, {
|
||||||
this.eventBus.emit(ADDON_EVENTS_HANDLED, {
|
result: integrationEvent.state,
|
||||||
result: integrationEvent.state,
|
destination: this.name,
|
||||||
destination: this.name,
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
destroy?(): void;
|
destroy?(): void;
|
||||||
|
@ -57,7 +57,6 @@ export type IFlagKey =
|
|||||||
| 'originMiddlewareRequestLogging'
|
| 'originMiddlewareRequestLogging'
|
||||||
| 'unleashAI'
|
| 'unleashAI'
|
||||||
| 'webhookDomainLogging'
|
| 'webhookDomainLogging'
|
||||||
| 'addonUsageMetrics'
|
|
||||||
| 'releasePlans'
|
| 'releasePlans'
|
||||||
| 'navigationSidebar'
|
| 'navigationSidebar'
|
||||||
| 'productivityReportEmail'
|
| 'productivityReportEmail'
|
||||||
@ -286,10 +285,6 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENT_WEBHOOK_DOMAIN_LOGGING,
|
process.env.UNLEASH_EXPERIMENT_WEBHOOK_DOMAIN_LOGGING,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
addonUsageMetrics: parseEnvVarBoolean(
|
|
||||||
process.env.UNLEASH_EXPERIMENTAL_ADDON_USAGE_METRICS,
|
|
||||||
false,
|
|
||||||
),
|
|
||||||
releasePlans: parseEnvVarBoolean(
|
releasePlans: parseEnvVarBoolean(
|
||||||
process.env.UNLEASH_EXPERIMENTAL_RELEASE_PLANS,
|
process.env.UNLEASH_EXPERIMENTAL_RELEASE_PLANS,
|
||||||
false,
|
false,
|
||||||
|
@ -55,7 +55,6 @@ process.nextTick(async () => {
|
|||||||
originMiddlewareRequestLogging: true,
|
originMiddlewareRequestLogging: true,
|
||||||
unleashAI: true,
|
unleashAI: true,
|
||||||
webhookDomainLogging: true,
|
webhookDomainLogging: true,
|
||||||
addonUsageMetrics: true,
|
|
||||||
releasePlans: false,
|
releasePlans: false,
|
||||||
simplifyProjectOverview: true,
|
simplifyProjectOverview: true,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user