Skip to content

Commit

Permalink
add feature flag for the new export report feature
Browse files Browse the repository at this point in the history
  • Loading branch information
smoralesd committed Mar 17, 2020
1 parent 11a4947 commit 75a06f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/common/feature-flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
},
];
}

Expand Down
1 change: 1 addition & 0 deletions src/tests/unit/tests/background/feature-flags.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ describe('FeatureFlagsTest', () => {
[FeatureFlags.showInstanceVisibility]: false,
[FeatureFlags.manualInstanceDetails]: false,
[FeatureFlags.debugTools]: false,
[FeatureFlags.exportReport]: false,
};

const featureFlagValueKeys = keys(featureFlagValues);
Expand Down

0 comments on commit 75a06f6

Please sign in to comment.