mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Infrastructure UI] Remove OS column from the hosts view table (#159201)
closes [#1000](https://github.com/elastic/obs-infraobs-team/issues/1000)
## Summary
Removes OS column from the Hosts View table
<img width="1432" alt="image"
src="426f3a36
-0565-4b99-a542-cf0ae3fa5a6d">
### How to test
- Start a local kibana
- Navigate to` Infrastructure > Hosts`
This commit is contained in:
parent
7890be623c
commit
cd38ea99ec
5 changed files with 7 additions and 18 deletions
|
@ -8,6 +8,7 @@
|
|||
import React from 'react';
|
||||
import { EuiBasicTable } from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { useIsWithinMaxBreakpoint } from '@elastic/eui';
|
||||
import { NoData } from '../../../../components/empty_states';
|
||||
import { HostNodeRow, useHostsTableContext } from '../hooks/use_hosts_table';
|
||||
import { useHostsViewContext } from '../hooks/use_hosts_view';
|
||||
|
@ -20,6 +21,7 @@ const PAGE_SIZE_OPTIONS = [5, 10, 20];
|
|||
export const HostsTable = () => {
|
||||
const { loading } = useHostsViewContext();
|
||||
const { onSubmit } = useUnifiedSearchContext();
|
||||
const isFixedLayout = useIsWithinMaxBreakpoint('l');
|
||||
|
||||
const {
|
||||
columns,
|
||||
|
@ -37,6 +39,7 @@ export const HostsTable = () => {
|
|||
<>
|
||||
<EuiBasicTable
|
||||
data-test-subj="hostsView-table"
|
||||
tableLayout={isFixedLayout ? 'fixed' : 'auto'}
|
||||
pagination={{
|
||||
pageIndex: pagination.pageIndex ?? 0,
|
||||
pageSize: pagination.pageSize ?? DEFAULT_PAGE_SIZE,
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import React, { useCallback, useMemo } from 'react';
|
||||
import { EuiBasicTableColumn, EuiText } from '@elastic/eui';
|
||||
import { EuiBasicTableColumn } from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import createContainer from 'constate';
|
||||
import { isEqual } from 'lodash';
|
||||
|
@ -116,10 +116,6 @@ const titleLabel = i18n.translate('xpack.infra.hostsViewPage.table.nameColumnHea
|
|||
defaultMessage: 'Name',
|
||||
});
|
||||
|
||||
const osLabel = i18n.translate('xpack.infra.hostsViewPage.table.operatingSystemColumnHeader', {
|
||||
defaultMessage: 'Operating System',
|
||||
});
|
||||
|
||||
const averageCpuUsageLabel = i18n.translate(
|
||||
'xpack.infra.hostsViewPage.table.averageCpuUsageColumnHeader',
|
||||
{
|
||||
|
@ -260,13 +256,6 @@ export const useHostsTable = () => {
|
|||
/>
|
||||
),
|
||||
},
|
||||
{
|
||||
name: osLabel,
|
||||
field: 'os',
|
||||
sortable: true,
|
||||
'data-test-subj': 'hostsView-tableRow-os',
|
||||
render: (os: string) => <EuiText size="s">{os}</EuiText>,
|
||||
},
|
||||
{
|
||||
name: averageCpuUsageLabel,
|
||||
field: 'cpu',
|
||||
|
|
|
@ -18498,7 +18498,6 @@
|
|||
"xpack.infra.hostsViewPage.table.averageTxColumnHeader": "TX (moy.)",
|
||||
"xpack.infra.hostsViewPage.table.diskLatencyColumnHeader": "Latence du disque (moy.)",
|
||||
"xpack.infra.hostsViewPage.table.nameColumnHeader": "Nom",
|
||||
"xpack.infra.hostsViewPage.table.operatingSystemColumnHeader": "Système d'exploitation",
|
||||
"xpack.infra.hostsViewPage.table.toggleDialogWithDetails": "Afficher/Masquer les détails de la boîte de dialogue",
|
||||
"xpack.infra.hostsViewPage.tabs.alerts.alertStatusFilter.active": "Actif",
|
||||
"xpack.infra.hostsViewPage.tabs.alerts.alertStatusFilter.legend": "Filtrer par",
|
||||
|
@ -39680,4 +39679,4 @@
|
|||
"xpack.painlessLab.title": "Painless Lab",
|
||||
"xpack.painlessLab.walkthroughButtonLabel": "Présentation"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -18497,7 +18497,6 @@
|
|||
"xpack.infra.hostsViewPage.table.averageTxColumnHeader": "TX(平均)",
|
||||
"xpack.infra.hostsViewPage.table.diskLatencyColumnHeader": "ディスクレイテンシ(平均)",
|
||||
"xpack.infra.hostsViewPage.table.nameColumnHeader": "名前",
|
||||
"xpack.infra.hostsViewPage.table.operatingSystemColumnHeader": "オペレーティングシステム",
|
||||
"xpack.infra.hostsViewPage.table.toggleDialogWithDetails": "詳細ダイアログを切り替え",
|
||||
"xpack.infra.hostsViewPage.tabs.alerts.alertStatusFilter.active": "アクティブ",
|
||||
"xpack.infra.hostsViewPage.tabs.alerts.alertStatusFilter.legend": "フィルタリング条件",
|
||||
|
@ -39650,4 +39649,4 @@
|
|||
"xpack.painlessLab.title": "Painless Lab",
|
||||
"xpack.painlessLab.walkthroughButtonLabel": "実地検証"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -18497,7 +18497,6 @@
|
|||
"xpack.infra.hostsViewPage.table.averageTxColumnHeader": "TX(平均值)",
|
||||
"xpack.infra.hostsViewPage.table.diskLatencyColumnHeader": "磁盘延迟(平均值)",
|
||||
"xpack.infra.hostsViewPage.table.nameColumnHeader": "名称",
|
||||
"xpack.infra.hostsViewPage.table.operatingSystemColumnHeader": "操作系统",
|
||||
"xpack.infra.hostsViewPage.table.toggleDialogWithDetails": "切换具有详情的对话框",
|
||||
"xpack.infra.hostsViewPage.tabs.alerts.alertStatusFilter.active": "活动",
|
||||
"xpack.infra.hostsViewPage.tabs.alerts.alertStatusFilter.legend": "筛选依据",
|
||||
|
@ -39644,4 +39643,4 @@
|
|||
"xpack.painlessLab.title": "Painless 实验室",
|
||||
"xpack.painlessLab.walkthroughButtonLabel": "指导"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue