mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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:
		
							parent
							
								
									2698ddf704
								
							
						
					
					
						commit
						73f0cb6180
					
				@ -164,7 +164,7 @@ const OldHeader: VFC = () => {
 | 
			
		||||
    const onAdminClose = () => setAdminRef(null);
 | 
			
		||||
    const onConfigureClose = () => setConfigRef(null);
 | 
			
		||||
    const celebatoryUnleash = useUiFlag('celebrateUnleash');
 | 
			
		||||
    const insightsDashboard = useUiFlag('executiveDashboardUI');
 | 
			
		||||
    const killInsightsDashboard = useUiFlag('killInsightsUI');
 | 
			
		||||
 | 
			
		||||
    const routes = getRoutes();
 | 
			
		||||
    const adminRoutes = useAdminRoutes();
 | 
			
		||||
@ -242,7 +242,7 @@ const OldHeader: VFC = () => {
 | 
			
		||||
                        <StyledLink to={'/search'}>Search</StyledLink>
 | 
			
		||||
                        <StyledLink to='/playground'>Playground</StyledLink>
 | 
			
		||||
                        <ConditionallyRender
 | 
			
		||||
                            condition={insightsDashboard}
 | 
			
		||||
                            condition={!killInsightsDashboard}
 | 
			
		||||
                            show={
 | 
			
		||||
                                <StyledLinkWithBetaBadge
 | 
			
		||||
                                    to={'/insights'}
 | 
			
		||||
 | 
			
		||||
@ -127,10 +127,10 @@ exports[`returns all baseRoutes 1`] = `
 | 
			
		||||
  {
 | 
			
		||||
    "component": [Function],
 | 
			
		||||
    "enterprise": false,
 | 
			
		||||
    "flag": "executiveDashboardUI",
 | 
			
		||||
    "menu": {
 | 
			
		||||
      "mobile": true,
 | 
			
		||||
    },
 | 
			
		||||
    "notFlag": "killInsightsUI",
 | 
			
		||||
    "path": "/insights",
 | 
			
		||||
    "title": "Insights",
 | 
			
		||||
    "type": "protected",
 | 
			
		||||
 | 
			
		||||
@ -152,7 +152,7 @@ export const routes: IRoute[] = [
 | 
			
		||||
        component: Insights,
 | 
			
		||||
        type: 'protected',
 | 
			
		||||
        menu: { mobile: true },
 | 
			
		||||
        flag: 'executiveDashboardUI',
 | 
			
		||||
        notFlag: 'killInsightsUI',
 | 
			
		||||
        enterprise: false,
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -68,7 +68,7 @@ export type UiFlags = {
 | 
			
		||||
    featureSearchFeedback?: Variant;
 | 
			
		||||
    enableLicense?: boolean;
 | 
			
		||||
    adminTokenKillSwitch?: boolean;
 | 
			
		||||
    executiveDashboardUI?: boolean;
 | 
			
		||||
    killInsightsUI?: boolean;
 | 
			
		||||
    feedbackComments?: Variant;
 | 
			
		||||
    displayUpgradeEdgeBanner?: boolean;
 | 
			
		||||
    showInactiveUsers?: boolean;
 | 
			
		||||
 | 
			
		||||
@ -100,7 +100,6 @@ exports[`should create default config 1`] = `
 | 
			
		||||
      "enableLicenseChecker": false,
 | 
			
		||||
      "encryptEmails": false,
 | 
			
		||||
      "estimateTrafficDataCost": false,
 | 
			
		||||
      "executiveDashboardUI": false,
 | 
			
		||||
      "extendedUsageMetrics": false,
 | 
			
		||||
      "featureLifecycle": false,
 | 
			
		||||
      "featureSearchFeedback": {
 | 
			
		||||
@ -123,6 +122,7 @@ exports[`should create default config 1`] = `
 | 
			
		||||
      },
 | 
			
		||||
      "filterInvalidClientMetrics": false,
 | 
			
		||||
      "googleAuthEnabled": false,
 | 
			
		||||
      "killInsightsUI": false,
 | 
			
		||||
      "killScheduledChangeRequestCache": false,
 | 
			
		||||
      "maintenanceMode": false,
 | 
			
		||||
      "manyStrategiesPagination": false,
 | 
			
		||||
 | 
			
		||||
@ -34,7 +34,7 @@ export type IFlagKey =
 | 
			
		||||
    | 'edgeBulkMetrics'
 | 
			
		||||
    | 'extendedUsageMetrics'
 | 
			
		||||
    | 'adminTokenKillSwitch'
 | 
			
		||||
    | 'executiveDashboardUI'
 | 
			
		||||
    | 'killInsightsUI'
 | 
			
		||||
    | 'feedbackComments'
 | 
			
		||||
    | 'showInactiveUsers'
 | 
			
		||||
    | 'killScheduledChangeRequestCache'
 | 
			
		||||
@ -182,8 +182,8 @@ const flags: IFlags = {
 | 
			
		||||
        process.env.UNLEASH_EXPERIMENTAL_ADMIN_TOKEN_KILL_SWITCH,
 | 
			
		||||
        false,
 | 
			
		||||
    ),
 | 
			
		||||
    executiveDashboardUI: parseEnvVarBoolean(
 | 
			
		||||
        process.env.UNLEASH_EXPERIMENTAL_EXECUTIVE_DASHBOARD_UI,
 | 
			
		||||
    killInsightsUI: parseEnvVarBoolean(
 | 
			
		||||
        process.env.UNLEASH_EXPERIMENTAL_KILL_INSIGHTS_UI,
 | 
			
		||||
        false,
 | 
			
		||||
    ),
 | 
			
		||||
    outdatedSdksBanner: parseEnvVarBoolean(
 | 
			
		||||
 | 
			
		||||
@ -43,7 +43,7 @@ process.nextTick(async () => {
 | 
			
		||||
                        stripHeadersOnAPI: true,
 | 
			
		||||
                        celebrateUnleash: true,
 | 
			
		||||
                        featureSearchFeedbackPosting: true,
 | 
			
		||||
                        executiveDashboardUI: true,
 | 
			
		||||
                        killInsightsUI: false,
 | 
			
		||||
                        userAccessUIEnabled: true,
 | 
			
		||||
                        outdatedSdksBanner: true,
 | 
			
		||||
                        disableShowContextFieldSelectionValues: false,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user