1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

chore: switch insights ui flag to kill switch (#7166)

The flag is already set up in our Unleash instance.
This commit is contained in:
Jaanus Sellin 2024-05-28 09:44:52 +03:00 committed by GitHub
parent 2698ddf704
commit 73f0cb6180
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 10 additions and 10 deletions

View File

@ -164,7 +164,7 @@ const OldHeader: VFC = () => {
const onAdminClose = () => setAdminRef(null); const onAdminClose = () => setAdminRef(null);
const onConfigureClose = () => setConfigRef(null); const onConfigureClose = () => setConfigRef(null);
const celebatoryUnleash = useUiFlag('celebrateUnleash'); const celebatoryUnleash = useUiFlag('celebrateUnleash');
const insightsDashboard = useUiFlag('executiveDashboardUI'); const killInsightsDashboard = useUiFlag('killInsightsUI');
const routes = getRoutes(); const routes = getRoutes();
const adminRoutes = useAdminRoutes(); const adminRoutes = useAdminRoutes();
@ -242,7 +242,7 @@ const OldHeader: VFC = () => {
<StyledLink to={'/search'}>Search</StyledLink> <StyledLink to={'/search'}>Search</StyledLink>
<StyledLink to='/playground'>Playground</StyledLink> <StyledLink to='/playground'>Playground</StyledLink>
<ConditionallyRender <ConditionallyRender
condition={insightsDashboard} condition={!killInsightsDashboard}
show={ show={
<StyledLinkWithBetaBadge <StyledLinkWithBetaBadge
to={'/insights'} to={'/insights'}

View File

@ -127,10 +127,10 @@ exports[`returns all baseRoutes 1`] = `
{ {
"component": [Function], "component": [Function],
"enterprise": false, "enterprise": false,
"flag": "executiveDashboardUI",
"menu": { "menu": {
"mobile": true, "mobile": true,
}, },
"notFlag": "killInsightsUI",
"path": "/insights", "path": "/insights",
"title": "Insights", "title": "Insights",
"type": "protected", "type": "protected",

View File

@ -152,7 +152,7 @@ export const routes: IRoute[] = [
component: Insights, component: Insights,
type: 'protected', type: 'protected',
menu: { mobile: true }, menu: { mobile: true },
flag: 'executiveDashboardUI', notFlag: 'killInsightsUI',
enterprise: false, enterprise: false,
}, },

View File

@ -68,7 +68,7 @@ export type UiFlags = {
featureSearchFeedback?: Variant; featureSearchFeedback?: Variant;
enableLicense?: boolean; enableLicense?: boolean;
adminTokenKillSwitch?: boolean; adminTokenKillSwitch?: boolean;
executiveDashboardUI?: boolean; killInsightsUI?: boolean;
feedbackComments?: Variant; feedbackComments?: Variant;
displayUpgradeEdgeBanner?: boolean; displayUpgradeEdgeBanner?: boolean;
showInactiveUsers?: boolean; showInactiveUsers?: boolean;

View File

@ -100,7 +100,6 @@ exports[`should create default config 1`] = `
"enableLicenseChecker": false, "enableLicenseChecker": false,
"encryptEmails": false, "encryptEmails": false,
"estimateTrafficDataCost": false, "estimateTrafficDataCost": false,
"executiveDashboardUI": false,
"extendedUsageMetrics": false, "extendedUsageMetrics": false,
"featureLifecycle": false, "featureLifecycle": false,
"featureSearchFeedback": { "featureSearchFeedback": {
@ -123,6 +122,7 @@ exports[`should create default config 1`] = `
}, },
"filterInvalidClientMetrics": false, "filterInvalidClientMetrics": false,
"googleAuthEnabled": false, "googleAuthEnabled": false,
"killInsightsUI": false,
"killScheduledChangeRequestCache": false, "killScheduledChangeRequestCache": false,
"maintenanceMode": false, "maintenanceMode": false,
"manyStrategiesPagination": false, "manyStrategiesPagination": false,

View File

@ -34,7 +34,7 @@ export type IFlagKey =
| 'edgeBulkMetrics' | 'edgeBulkMetrics'
| 'extendedUsageMetrics' | 'extendedUsageMetrics'
| 'adminTokenKillSwitch' | 'adminTokenKillSwitch'
| 'executiveDashboardUI' | 'killInsightsUI'
| 'feedbackComments' | 'feedbackComments'
| 'showInactiveUsers' | 'showInactiveUsers'
| 'killScheduledChangeRequestCache' | 'killScheduledChangeRequestCache'
@ -182,8 +182,8 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_ADMIN_TOKEN_KILL_SWITCH, process.env.UNLEASH_EXPERIMENTAL_ADMIN_TOKEN_KILL_SWITCH,
false, false,
), ),
executiveDashboardUI: parseEnvVarBoolean( killInsightsUI: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_EXECUTIVE_DASHBOARD_UI, process.env.UNLEASH_EXPERIMENTAL_KILL_INSIGHTS_UI,
false, false,
), ),
outdatedSdksBanner: parseEnvVarBoolean( outdatedSdksBanner: parseEnvVarBoolean(

View File

@ -43,7 +43,7 @@ process.nextTick(async () => {
stripHeadersOnAPI: true, stripHeadersOnAPI: true,
celebrateUnleash: true, celebrateUnleash: true,
featureSearchFeedbackPosting: true, featureSearchFeedbackPosting: true,
executiveDashboardUI: true, killInsightsUI: false,
userAccessUIEnabled: true, userAccessUIEnabled: true,
outdatedSdksBanner: true, outdatedSdksBanner: true,
disableShowContextFieldSelectionValues: false, disableShowContextFieldSelectionValues: false,