This is an automated email from the ASF dual-hosted git repository.

domgarguilo pushed a commit to branch 2.1
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/2.1 by this push:
     new 06bb5cd8a5 Fix sorting on bulk import tables in monitor (#6059)
06bb5cd8a5 is described below

commit 06bb5cd8a5d66d499067c3bbb92ba4c570c657fa
Author: Dom G. <[email protected]>
AuthorDate: Thu Jan 15 14:07:23 2026 -0500

    Fix sorting on bulk import tables in monitor (#6059)
    
    allow for proper sorting in the age column for the bulk import tables in 
the monitor
---
 .../accumulo/monitor/resources/js/bulkImport.js       | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git 
a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/bulkImport.js
 
b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/bulkImport.js
index a89bc95ad4..abb07b57ea 100644
--- 
a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/bulkImport.js
+++ 
b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/bulkImport.js
@@ -50,6 +50,7 @@ $(document).ready(function () {
       "dataSrc": "bulkImport"
     },
     "stateSave": true,
+    "autoWidth": false,
     "columns": [{
         "data": "filename",
         "width": "40%"
@@ -58,12 +59,11 @@ $(document).ready(function () {
         "data": "age",
         "width": "45%",
         "render": function (data, type) {
-          if (type === 'display' && Number(data) > 0) {
-            data = new Date(Number(data));
-          } else {
-            data = "-";
+          var age = Number(data);
+          if (type === 'display') {
+            return age > 0 ? new Date(age) : "-";
           }
-          return data;
+          return age > 0 ? age : 0;
         }
       },
       {
@@ -96,12 +96,11 @@ $(document).ready(function () {
       {
         "data": "oldestAge",
         "render": function (data, type) {
-          if (type === 'display' && Number(data) > 0) {
-            data = new Date(Number(data));
-          } else {
-            data = "-";
+          var age = Number(data);
+          if (type === 'display') {
+            return age > 0 ? new Date(age) : "-";
           }
-          return data;
+          return age > 0 ? age : 0;
         }
       }
     ]

Reply via email to