Skip to content

Commit

Permalink
feat: add feature flag for posting feedback (#5741)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus authored Jan 2, 2024
1 parent cda7d20 commit f53204c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib/__snapshots__/create-config.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ exports[`should create default config 1`] = `
"embedProxyFrontend": true,
"featureSearchAPI": false,
"featureSearchFeedback": false,
"featureSearchFeedbackPosting": false,
"featureSearchFrontend": false,
"featuresExportImport": true,
"filterInvalidClientMetrics": false,
Expand Down
7 changes: 6 additions & 1 deletion src/lib/types/experimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export type IFlagKey =
| 'incomingWebhooks'
| 'celebrateUnleash'
| 'increaseUnleashWidth'
| 'featureSearchFeedback';
| 'featureSearchFeedback'
| 'featureSearchFeedbackPosting';

export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;

Expand Down Expand Up @@ -161,6 +162,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_FEATURE_SEARCH_FEEDBACK,
false,
),
featureSearchFeedbackPosting: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_FEATURE_SEARCH_FEEDBACK_POSTING,
false,
),
};

export const defaultExperimentalOptions: IExperimentalOptions = {
Expand Down

0 comments on commit f53204c

Please sign in to comment.