From 75a06f642ae437d47e625cf6ad0f2329c7792b75 Mon Sep 17 00:00:00 2001 From: Sebastian Morales Date: Tue, 17 Mar 2020 11:57:28 -0700 Subject: [PATCH] add feature flag for the new export report feature --- src/common/feature-flags.ts | 10 ++++++++++ src/tests/unit/tests/background/feature-flags.test.ts | 1 + 2 files changed, 11 insertions(+) diff --git a/src/common/feature-flags.ts b/src/common/feature-flags.ts index 2e7b693fa42..75d2536b6e1 100644 --- a/src/common/feature-flags.ts +++ b/src/common/feature-flags.ts @@ -13,6 +13,8 @@ export class FeatureFlags { public static readonly showInstanceVisibility = 'showInstanceVisibility'; public static readonly manualInstanceDetails = 'manualInstanceDetails'; public static readonly debugTools = 'debugTools'; + + public static readonly exportReport = 'exportReport'; } export interface FeatureFlagDetail { @@ -99,6 +101,14 @@ export function getAllFeatureFlagDetails(): FeatureFlagDetail[] { isPreviewFeature: false, forceDefault: false, }, + { + id: FeatureFlags.exportReport, + defaultValue: false, + displayableName: 'Enable more export report options', + displayableDescription: 'Enabling exporting reports directly to code pen', + isPreviewFeature: true, + forceDefault: false, + }, ]; } diff --git a/src/tests/unit/tests/background/feature-flags.test.ts b/src/tests/unit/tests/background/feature-flags.test.ts index 5ce2cded2aa..e2ca7e91f14 100644 --- a/src/tests/unit/tests/background/feature-flags.test.ts +++ b/src/tests/unit/tests/background/feature-flags.test.ts @@ -25,6 +25,7 @@ describe('FeatureFlagsTest', () => { [FeatureFlags.showInstanceVisibility]: false, [FeatureFlags.manualInstanceDetails]: false, [FeatureFlags.debugTools]: false, + [FeatureFlags.exportReport]: false, }; const featureFlagValueKeys = keys(featureFlagValues);