Skip to content

Conversation

@runitao
Copy link
Contributor

@runitao runitao commented Jun 27, 2020

What changes were proposed in this pull request?

Add datanode version and setup time in recon web.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-3798

How was this patch tested?

image

update on 2020/07/05

cd hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web
pnpm run dev

As @vivekratnavel suggestion, I have add a multi-select dropdown to hide/show some columns. Here is the effect

image

@maobaolong
Copy link
Member

@runitao That's wonderful, but you should fix the checkstyle issue first.

@vivekratnavel
Copy link
Contributor

@runitao Thanks for the patch! Can we make these two columns optional? We can have a "show/hide columns" button to have a multi-select dropdown and make these two columns not display by default. The users can then choose which columns to show/hide. I don't like adding lots of columns without an option to hide some of them to give more space to most used columns.

@runitao
Copy link
Contributor Author

runitao commented Jul 3, 2020

Thanks @vivekratnavel for review, I will add the button.

@maobaolong
Copy link
Member

@runitao hope to see this feature in the recent release.

@runitao
Copy link
Contributor Author

runitao commented Jul 5, 2020

@vivekratnavel PTAL, Thanks

Copy link
Contributor

@vivekratnavel vivekratnavel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM. I have left a couple of inline comments.

I suspect some lint errors that should be fixed. Can you please run yarn run lint and fix any errors? Running yarn run lint:fix should fix errors automatically. Thanks!

dataSource,
totalCount,
lastUpdated: Number(moment())
lastUpdated: Number(moment()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: dangling comma

Suggested change
lastUpdated: Number(moment()),
lastUpdated: Number(moment())

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

<Table
dataSource={dataSource}
columns={COLUMNS.filter((column) =>
selectedColumns.some((e) => e.label === column.key)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: compare value instead of label

Suggested change
selectedColumns.some((e) => e.label === column.key)
selectedColumns.some((e) => e.value === column.key)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@runitao
Copy link
Contributor Author

runitao commented Jul 6, 2020

Thanks @vivekratnavel for review. The yarn run lint:fix is awesome.
Please take a look again, thanks.

Copy link
Contributor

@vivekratnavel vivekratnavel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM

@runitao
Copy link
Contributor Author

runitao commented Jul 9, 2020

[ERROR] Failures: 
[ERROR]   TestBlockOutputStreamFlushDelay.testFullBufferCondition:582 expected:<11> but was:<13>

I think this failure case is unrelated with my PR.

Please help me trigger CI again

@runitao
Copy link
Contributor Author

runitao commented Jul 13, 2020

@avijayanhwx Would you please help me review this PR?

@vivekratnavel vivekratnavel merged commit 4d964f3 into apache:master Jul 14, 2020
@vivekratnavel
Copy link
Contributor

@runitao Thanks for working on this! I have merged the change.

ChenSammi pushed a commit that referenced this pull request Jul 22, 2020
avijayanhwx pushed a commit to avijayanhwx/hadoop-ozone that referenced this pull request Aug 10, 2020
rakeshadr pushed a commit to rakeshadr/hadoop-ozone that referenced this pull request Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants