You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by pa...@apache.org on 2021/03/03 09:44:11 UTC

[hbase] branch branch-2.4 updated: HBASE-25367 Sort broken after Change 'State time' in UI (#2964)

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

pankajkumar pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.4 by this push:
     new 5b92554  HBASE-25367 Sort broken after Change 'State time' in UI (#2964)
5b92554 is described below

commit 5b9255490678526262cb3429a9ed193ef333d2a9
Author: Akshay Sudheer <74...@users.noreply.github.com>
AuthorDate: Wed Mar 3 13:57:42 2021 +0530

    HBASE-25367 Sort broken after Change 'State time' in UI (#2964)
    
    Signed-off-by: Duo Zhang <zh...@apache.org>
    Signed-off-by: Pankaj Kumar<pa...@apache.org>
    (cherry picked from commit 5d9a6ed1fe47f0186acf08165c3b82ff63276f35)
---
 .../jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon  | 1 +
 .../main/resources/hbase-webapps/static/js/parser-date-iso8601.min.js | 4 ++++
 pom.xml                                                               | 1 +
 3 files changed, 6 insertions(+)

diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
index 65bb0f2..67e1dda 100644
--- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
+++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
@@ -411,6 +411,7 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
 
     <script src="/static/js/jquery.min.js" type="text/javascript"></script>
     <script src="/static/js/jquery.tablesorter.min.js" type="text/javascript"></script>
+    <script src="/static/js/parser-date-iso8601.min.js" type="text/javascript"></script>
     <script src="/static/js/bootstrap.min.js" type="text/javascript"></script>
     <script src="/static/js/tab.js" type="text/javascript"></script>
     <script src="/static/js/jqSpager.js" type="text/javascript"></script>
diff --git a/hbase-server/src/main/resources/hbase-webapps/static/js/parser-date-iso8601.min.js b/hbase-server/src/main/resources/hbase-webapps/static/js/parser-date-iso8601.min.js
new file mode 100644
index 0000000..fe116cb
--- /dev/null
+++ b/hbase-server/src/main/resources/hbase-webapps/static/js/parser-date-iso8601.min.js
@@ -0,0 +1,4 @@
+(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
+
+/*! Parser: ISO-8601 date - updated 10/26/2014 (v2.18.0) */
+!function(e){"use strict";var s=/^([0-9]{4})(-([0-9]{2})(-([0-9]{2})(T([0-9]{2}):([0-9]{2})(:([0-9]{2})(\.([0-9]+))?)?(Z|(([-+])([0-9]{2}):([0-9]{2})))?)?)?)?$/;e.tablesorter.addParser({id:"iso8601date",is:function(e){return!!e&&e.match(s)},format:function(e){var t=e?e.match(s):e;if(t){var r=new Date(t[1],0,1);return t[3]&&r.setMonth(t[3]-1),t[5]&&r.setDate(t[5]),t[7]&&r.setHours(t[7]),t[8]&&r.setMinutes(t[8]),t[10]&&r.setSeconds(t[10]),t[12]&&r.setMilliseconds(1e3*Number("0."+t[12])),r. [...]
diff --git a/pom.xml b/pom.xml
index 4b7bbcd..3d52bd1 100755
--- a/pom.xml
+++ b/pom.xml
@@ -738,6 +738,7 @@
               <!-- MIT https://jquery.org/license -->
               <exclude>**/jquery.min.js</exclude>
               <exclude>**/jquery.tablesorter.min.js</exclude>
+              <exclude>**/parser-date-iso8601.min.js</exclude>
               <!-- MIT: bootstrap -->
               <exclude>**/src/main/resources/hbase-webapps/static/*/bootstrap*</exclude>
               <!-- vector graphics -->