You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by si...@apache.org on 2022/09/15 19:20:40 UTC
[ozone] branch master updated: HDDS-7144. Recon: Make only hostname fixed in Datanodes page. (#3736)
This is an automated email from the ASF dual-hosted git repository.
siyao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 3130b03846 HDDS-7144. Recon: Make only hostname fixed in Datanodes page. (#3736)
3130b03846 is described below
commit 3130b03846d7f2071d6e9e1a5aa60ef4ce0df4d0
Author: smitajoshi12 <11...@users.noreply.github.com>
AuthorDate: Fri Sep 16 00:50:35 2022 +0530
HDDS-7144. Recon: Make only hostname fixed in Datanodes page. (#3736)
---
.../src/views/datanodes/datanodes.tsx | 29 +++++++++++-----------
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/datanodes/datanodes.tsx b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/datanodes/datanodes.tsx
index 31aae17a46..d2aedb29e5 100644
--- a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/datanodes/datanodes.tsx
+++ b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/datanodes/datanodes.tsx
@@ -120,40 +120,41 @@ const renderDatanodeOpState = (opState: DatanodeOpState) => {
};
const COLUMNS = [
+ {
+ title: 'Hostname',
+ dataIndex: 'hostname',
+ key: 'hostname',
+ isVisible: true,
+ isSearchable: true,
+ sorter: (a: IDatanode, b: IDatanode) => a.hostname.localeCompare(b.hostname),
+ defaultSortOrder: 'ascend' as const,
+ fixed: 'left'
+ },
{
title: 'State',
dataIndex: 'state',
key: 'state',
isVisible: true,
+ isSearchable: true,
filterMultiple: true,
filters: DatanodeStateList.map(state => ({text: state, value: state})),
onFilter: (value: DatanodeState, record: IDatanode) => record.state === value,
render: (text: DatanodeState) => renderDatanodeState(text),
- sorter: (a: IDatanode, b: IDatanode) => a.state.localeCompare(b.state),
- fixed: 'left'
+ sorter: (a: IDatanode, b: IDatanode) => a.state.localeCompare(b.state)
},
{
title: 'Operational State',
dataIndex: 'opState',
key: 'opState',
isVisible: true,
+ isSearchable: true,
filterMultiple: true,
filters: DatanodeOpStateList.map(state => ({text: state, value: state})),
onFilter: (value: DatanodeOpState, record: IDatanode) => record.opState === value,
render: (text: DatanodeOpState) => renderDatanodeOpState(text),
- sorter: (a: IDatanode, b: IDatanode) => a.opState.localeCompare(b.opState),
- fixed: 'left'
- },
- {
- title: 'Hostname',
- dataIndex: 'hostname',
- key: 'hostname',
- isVisible: true,
- isSearchable: true,
- sorter: (a: IDatanode, b: IDatanode) => a.hostname.localeCompare(b.hostname),
- defaultSortOrder: 'ascend' as const,
- fixed: 'left'
+ sorter: (a: IDatanode, b: IDatanode) => a.opState.localeCompare(b.opState)
},
+
{
title: 'Uuid',
dataIndex: 'uuid',
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org