refactor(core): Add binary data S3 to telemetry (#7412)

https://n8nio.slack.com/archives/C04B1GZ4T0U/p1697033523039729
This commit is contained in:
Iván Ovejero
2023-10-13 13:16:43 +02:00
committed by GitHub
parent c3f0be809f
commit c6ee1e30c0
5 changed files with 18 additions and 0 deletions

View File

@@ -155,6 +155,7 @@ export class FrontendService {
externalSecrets: false,
showNonProdBanner: false,
debugInEditor: false,
binaryDataS3: false,
workflowHistory: false,
},
mfa: {
@@ -224,6 +225,10 @@ export class FrontendService {
this.settings.banners.dismissed = dismissedBanners;
const isS3Selected = config.getEnv('binaryDataManager.mode') === 's3';
const isS3Available = config.getEnv('binaryDataManager.availableModes').includes('s3');
const isS3Licensed = this.license.isBinaryDataS3Licensed();
// refresh enterprise status
Object.assign(this.settings.enterprise, {
sharing: this.license.isSharingEnabled(),
@@ -236,6 +241,7 @@ export class FrontendService {
externalSecrets: this.license.isExternalSecretsEnabled(),
showNonProdBanner: this.license.isFeatureEnabled(LICENSE_FEATURES.SHOW_NON_PROD_BANNER),
debugInEditor: this.license.isDebugInEditorLicensed(),
binaryDataS3: isS3Available && isS3Selected && isS3Licensed,
workflowHistory:
this.license.isWorkflowHistoryLicensed() && config.getEnv('workflowHistory.enabled'),
});