[ 
https://issues.apache.org/jira/browse/HDFS-6407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14637704#comment-14637704
 ] 

Haohui Mai commented on HDFS-6407:
----------------------------------

bq. I think my .5 patch actually separate the control and views.

If this is the case, can you tell me what the following code is trying to 
achieve?

{code}
+                  var colIndex = meta.col;
+                  var v;
+                  if (colIndex == 8) { 
+                    var comp = data;
+                    var res = comp.split(" ");
+                    var percent = res[1];
+                    v = res[0];
+                  } else {
+                    v = data;
+                  }
+
{code}

Don't get me wrong -- datatable is a pretty good widget but parsing the data 
from the table itself is really bad. I think it might work if you specify the 
{{data}} attribute directly and be careful on sorting orders.

> new namenode UI, lost ability to sort columns in datanode tab
> -------------------------------------------------------------
>
>                 Key: HDFS-6407
>                 URL: https://issues.apache.org/jira/browse/HDFS-6407
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 2.4.0
>            Reporter: Nathan Roberts
>            Assignee: Benoy Antony
>            Priority: Critical
>              Labels: BB2015-05-TBR
>         Attachments: 002-datanodes-sorted-capacityUsed.png, 
> 002-datanodes.png, 002-filebrowser.png, 002-snapshots.png, 
> HDFS-6407-002.patch, HDFS-6407-003.patch, HDFS-6407.4.patch, 
> HDFS-6407.5.patch, HDFS-6407.patch, browse_directory.png, datanodes.png, 
> snapshots.png, sorting table.png
>
>
> old ui supported clicking on column header to sort on that column. The new ui 
> seems to have dropped this very useful feature.
> There are a few tables in the Namenode UI to display  datanodes information, 
> directory listings and snapshots.
> When there are many items in the tables, it is useful to have ability to sort 
> on the different columns.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to