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:
parent
cda7d2070c
commit
f53204c9b2
@ -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,
|
||||||
|
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user