HDFS-16640. RBF: Show datanode IP list when click DN histogram in Router#4488
HDFS-16640. RBF: Show datanode IP list when click DN histogram in Router#4488goiri merged 3 commits intoapache:trunkfrom
Conversation
|
🎊 +1 overall
This message was automatically generated. |
| }); | ||
| })(); | ||
|
|
||
| function open_hostip_list(x0, x1) { |
There was a problem hiding this comment.
ayushtkn
left a comment
There was a problem hiding this comment.
Code seems exact copy from dfshealth.js, that is what we are doing for router UI, seems correct to me.
Good if you can attach a screenshot as well
Not an expert on javascript but it would be good to extract some if this common code. |
|
@ayushtkn |
Not an expert with Javascript either, but I feel this should be possible. If we extract all these common methods into some other Javascript file say Utils.js and then add that in both dfsHealth.html and FederationHealth.html before these .js files like: then may be we can get away from this copy-paste stuff @wzhallright can you give it a try for the methods that you copied or if you know a better way to avoid this duplication.... |
|
I'm not good at JS... But I can try to modify |
|
@ayushtkn Add histogram-hostip.js, after modified the screenshots. Please take a review, Thanks! |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |



Description of PR
I'm not sure if need to show a list of ip's when click dn histogram. I just saw the open_hostip_list() was called, but not implemented. So I ported the code from NN UI.
JIRA: https://issues.apache.org/jira/browse/HDFS-16640
How was this patch tested?
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?