1
0
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:
David Leek 2024-10-30 11:44:26 +01:00 committed by GitHub
parent 095a82569c
commit a1c98c4400
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 12 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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,
}, },