1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

feat: add feature flag for posting feedback (#5741)

This commit is contained in:
Jaanus Sellin 2024-01-02 13:10:54 +02:00 committed by GitHub
parent cda7d2070c
commit f53204c9b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -85,6 +85,7 @@ exports[`should create default config 1`] = `
"embedProxyFrontend": true,
"featureSearchAPI": false,
"featureSearchFeedback": false,
"featureSearchFeedbackPosting": false,
"featureSearchFrontend": false,
"featuresExportImport": true,
"filterInvalidClientMetrics": false,

View File

@ -35,7 +35,8 @@ export type IFlagKey =
| 'incomingWebhooks'
| 'celebrateUnleash'
| 'increaseUnleashWidth'
| 'featureSearchFeedback';
| 'featureSearchFeedback'
| 'featureSearchFeedbackPosting';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -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 = {