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 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'}

View File

@ -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",

View File

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

View File

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

View File

@ -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,

View File

@ -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(

View File

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