1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-01 01:18:10 +02: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, "embedProxyFrontend": true,
"featureSearchAPI": false, "featureSearchAPI": false,
"featureSearchFeedback": false, "featureSearchFeedback": false,
"featureSearchFeedbackPosting": false,
"featureSearchFrontend": false, "featureSearchFrontend": false,
"featuresExportImport": true, "featuresExportImport": true,
"filterInvalidClientMetrics": false, "filterInvalidClientMetrics": false,

View File

@ -35,7 +35,8 @@ export type IFlagKey =
| 'incomingWebhooks' | 'incomingWebhooks'
| 'celebrateUnleash' | 'celebrateUnleash'
| 'increaseUnleashWidth' | 'increaseUnleashWidth'
| 'featureSearchFeedback'; | 'featureSearchFeedback'
| 'featureSearchFeedbackPosting';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -161,6 +162,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_FEATURE_SEARCH_FEEDBACK, process.env.UNLEASH_EXPERIMENTAL_FEATURE_SEARCH_FEEDBACK,
false, false,
), ),
featureSearchFeedbackPosting: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_FEATURE_SEARCH_FEEDBACK_POSTING,
false,
),
}; };
export const defaultExperimentalOptions: IExperimentalOptions = { export const defaultExperimentalOptions: IExperimentalOptions = {