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

stigahuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git


The following commit(s) were added to refs/heads/master by this push:
     new 7c98ebb7b IMPALA-12977: add search and pagination to /hadoop-varz
7c98ebb7b is described below

commit 7c98ebb7b149a03a1fdb10f0da124c3fd2265f5d
Author: Saurabh Katiyal <[email protected]>
AuthorDate: Thu Apr 18 19:30:22 2024 +0530

    IMPALA-12977: add search and pagination to /hadoop-varz
    
    Added search and pagination feature to /hadoop-varz
    
    Change-Id: Ic8cac23b655fa58ce12d9857649705574614a5f0
    Reviewed-on: http://gerrit.cloudera.org:8080/21329
    Reviewed-by: Impala Public Jenkins <[email protected]>
    Tested-by: Impala Public Jenkins <[email protected]>
---
 www/hadoop-varz.tmpl | 36 +++++++++++++++++++++++++-----------
 1 file changed, 25 insertions(+), 11 deletions(-)

diff --git a/www/hadoop-varz.tmpl b/www/hadoop-varz.tmpl
index b45cbaa8f..b17e74c7b 100644
--- a/www/hadoop-varz.tmpl
+++ b/www/hadoop-varz.tmpl
@@ -18,17 +18,31 @@ under the License.
 -->
 {{> www/common-header.tmpl }}
 
-<table class='table table-hover table-bordered'>
-<tr>
-  <th>Config</th>
-  <th>Value</th>
-</tr>
-{{#configs}}
-<tr>
-  <td>{{key}}</td>
-  <td>{{value}}</td>
-</tr>
-{{/configs}}
+<table id="configs" class='table table-hover table-bordered'
+       style='table-layout:fixed; word-wrap: break-word'>
+  <thead>
+    <tr>
+      <th>Configuration</th>
+      <th>Value</th>
+    </tr>
+  </thead>
+  <tbody>
+    {{#configs}}
+    <tr {{?value_changed}}class="active"{{/value_changed}}>
+      <td><samp>{{key}}</samp></td>
+      <td>{{value}}</td>
+    </tr>
+    {{/configs}}
+  </tbody>
 </table>
 
+<script>
+    $(document).ready(function() {
+        $('#configs').DataTable({
+            "aaSorting": [[ 0, "asc" ]],
+            "pageLength": 100
+        });
+    });
+</script>
+
 {{> www/common-footer.tmpl }}

Reply via email to