Skip to content

Commit 1994c5b

Browse files
authored
[Core] remove unused "pageNavigation" setting (#89160)
* remove unused advanced setting * remove docs
1 parent ad953ee commit 1994c5b

File tree

7 files changed

+0
-51
lines changed

7 files changed

+0
-51
lines changed

docs/management/advanced-options.asciidoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,6 @@ The maximum numbers of buckets that a single data source can return. This might
134134
arise when the user selects a short interval (for example, 1s) for a long time
135135
period (1 year).
136136

137-
[[pagenavigation]]`pageNavigation`::
138-
The style of navigation menu for Kibana. Choices are Legacy, the legacy style
139-
where every plugin is represented in the nav, and Modern, a new format that
140-
bundles related plugins together in flyaway nested navigation.
141-
142137
[[query-allowleadingwildcards]]`query:allowLeadingWildcards`::
143138
Allows a wildcard (*) as the first character in a query clause. Only applies
144139
when experimental query features are enabled in the query bar. To disallow

src/core/server/ui_settings/settings/navigation.test.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,4 @@ describe('navigation settings', () => {
2828
);
2929
});
3030
});
31-
32-
describe('pageNavigation', () => {
33-
const validate = getValidationFn(navigationSettings.pageNavigation);
34-
35-
it('should only accept valid values', () => {
36-
expect(() => validate('modern')).not.toThrow();
37-
expect(() => validate('legacy')).not.toThrow();
38-
expect(() => validate('invalid')).toThrowErrorMatchingInlineSnapshot(`
39-
"types that failed validation:
40-
- [0]: expected value to equal [modern]
41-
- [1]: expected value to equal [legacy]"
42-
`);
43-
});
44-
});
4531
});

src/core/server/ui_settings/settings/navigation.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,5 @@ export const getNavigationSettings = (): Record<string, UiSettingsParams> => {
3737
'The route must be a relative URL.',
3838
}),
3939
},
40-
pageNavigation: {
41-
name: i18n.translate('core.ui_settings.params.pageNavigationName', {
42-
defaultMessage: 'Side nav style',
43-
}),
44-
value: 'modern',
45-
description: i18n.translate('core.ui_settings.params.pageNavigationDesc', {
46-
defaultMessage: 'Change the style of navigation',
47-
}),
48-
type: 'select',
49-
options: ['modern', 'legacy'],
50-
optionLabels: {
51-
modern: i18n.translate('core.ui_settings.params.pageNavigationModern', {
52-
defaultMessage: 'Modern',
53-
}),
54-
legacy: i18n.translate('core.ui_settings.params.pageNavigationLegacy', {
55-
defaultMessage: 'Legacy',
56-
}),
57-
},
58-
schema: schema.oneOf([schema.literal('modern'), schema.literal('legacy')]),
59-
},
6040
};
6141
};

src/plugins/kibana_usage_collection/server/collectors/management/schema.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export const stackManagementSchema: MakeSchemaFrom<UsageStats> = {
7777
'sort:options': { type: 'keyword' },
7878
'savedObjects:listingLimit': { type: 'long' },
7979
'query:queryString:options': { type: 'keyword' },
80-
pageNavigation: { type: 'keyword' },
8180
'metrics:max_buckets': { type: 'long' },
8281
'query:allowLeadingWildcards': { type: 'boolean' },
8382
metaFields: { type: 'keyword' }, // it's an array

src/plugins/telemetry/schema/oss_plugins.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4268,9 +4268,6 @@
42684268
"query:queryString:options": {
42694269
"type": "keyword"
42704270
},
4271-
"pageNavigation": {
4272-
"type": "keyword"
4273-
},
42744271
"metrics:max_buckets": {
42754272
"type": "long"
42764273
},

x-pack/plugins/translations/translations/ja-JP.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -529,10 +529,6 @@
529529
"core.ui_settings.params.notifications.infoLifetimeTitle": "情報通知時間",
530530
"core.ui_settings.params.notifications.warningLifetimeText": "警告通知が画面に表示される時間(ミリ秒単位)です。{infinityValue}に設定すると、無効になります。",
531531
"core.ui_settings.params.notifications.warningLifetimeTitle": "警告通知時間",
532-
"core.ui_settings.params.pageNavigationDesc": "ナビゲーションのスタイルを変更",
533-
"core.ui_settings.params.pageNavigationLegacy": "レガシー",
534-
"core.ui_settings.params.pageNavigationModern": "モダン",
535-
"core.ui_settings.params.pageNavigationName": "サイドナビゲーションスタイル",
536532
"core.ui_settings.params.storeUrlText": "URLが長くなりすぎるためブラウザーが対応できない場合があります。セッションストレージにURLの一部を保存することでこの問題に対処できるかどうかをテストしています。結果を教えてください!",
537533
"core.ui_settings.params.storeUrlTitle": "セッションストレージにURLを格納",
538534
"core.ui_settings.params.themeVersionText": "現在のバージョンと次のバージョンのKibanaで使用されるテーマを切り替えます。この設定を適用するにはページの更新が必要です。",

x-pack/plugins/translations/translations/zh-CN.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -529,10 +529,6 @@
529529
"core.ui_settings.params.notifications.infoLifetimeTitle": "信息通知生存时间",
530530
"core.ui_settings.params.notifications.warningLifetimeText": "在屏幕上显示警告通知的时间(毫秒)。设置为 {infinityValue} 将禁用此项。",
531531
"core.ui_settings.params.notifications.warningLifetimeTitle": "警告通知生存时间",
532-
"core.ui_settings.params.pageNavigationDesc": "更改导航样式",
533-
"core.ui_settings.params.pageNavigationLegacy": "旧版",
534-
"core.ui_settings.params.pageNavigationModern": "现代",
535-
"core.ui_settings.params.pageNavigationName": "侧边导航样式",
536532
"core.ui_settings.params.storeUrlText": "有时,URL 可能会变得过长,使某些浏览器无法进行处理。为此,我们将正测试在会话存储中存储 URL 的组成部分是否会有所帮助。请向我们反馈您的体验!",
537533
"core.ui_settings.params.storeUrlTitle": "将 URL 存储在会话存储中",
538534
"core.ui_settings.params.themeVersionText": "在用于当前版和下一版 Kibana 的主题之间切换。需要刷新页面,才能应用设置。",

0 commit comments

Comments
 (0)