ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gna...@apache.org
Subject ambari git commit: AMBARI-17765: Fix for : Hive View : Clicking on History button in saved search does not show history page. (Nitiraj Rathore via gauravn7)
Date Mon, 18 Jul 2016 12:04:23 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 4ac42ee5e -> bf3ea3b42


AMBARI-17765: Fix for : Hive View : Clicking on History button in saved search does not show
history page. (Nitiraj Rathore via gauravn7)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/bf3ea3b4
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/bf3ea3b4
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/bf3ea3b4

Branch: refs/heads/branch-2.4
Commit: bf3ea3b4210f3591815317bc1f4dbb1333c74474
Parents: 4ac42ee
Author: Gaurav Nagar <gnagar@hortonworks.com>
Authored: Mon Jul 18 17:33:19 2016 +0530
Committer: Gaurav Nagar <gnagar@hortonworks.com>
Committed: Mon Jul 18 17:33:19 2016 +0530

----------------------------------------------------------------------
 .../src/main/resources/ui/hive-web/app/controllers/history.js    | 4 +---
 .../src/main/resources/ui/hive-web/app/controllers/history.js    | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/bf3ea3b4/contrib/views/hive-next/src/main/resources/ui/hive-web/app/controllers/history.js
----------------------------------------------------------------------
diff --git a/contrib/views/hive-next/src/main/resources/ui/hive-web/app/controllers/history.js
b/contrib/views/hive-next/src/main/resources/ui/hive-web/app/controllers/history.js
index ca6233c..fa12e3f 100644
--- a/contrib/views/hive-next/src/main/resources/ui/hive-web/app/controllers/history.js
+++ b/contrib/views/hive-next/src/main/resources/ui/hive-web/app/controllers/history.js
@@ -163,12 +163,10 @@ export default Ember.ArrayController.extend(FilterableMixin, {
       return column.get('property') === filterProperty;
     });
 
-    var isDateColumn = column.get('caption') === 'columns.date';
-
     if (column) {
+      var isDateColumn = column.get('caption') === 'columns.date';
       column.set('filterValue', filterValue, exactMatch);
       if (isDateColumn) {
-
         return this.updateJobs(filterValue.min, filterValue.max);
       } else {
         this.updateFilters(filterProperty, filterValue, exactMatch);

http://git-wip-us.apache.org/repos/asf/ambari/blob/bf3ea3b4/contrib/views/hive/src/main/resources/ui/hive-web/app/controllers/history.js
----------------------------------------------------------------------
diff --git a/contrib/views/hive/src/main/resources/ui/hive-web/app/controllers/history.js
b/contrib/views/hive/src/main/resources/ui/hive-web/app/controllers/history.js
index ca6233c..fa12e3f 100644
--- a/contrib/views/hive/src/main/resources/ui/hive-web/app/controllers/history.js
+++ b/contrib/views/hive/src/main/resources/ui/hive-web/app/controllers/history.js
@@ -163,12 +163,10 @@ export default Ember.ArrayController.extend(FilterableMixin, {
       return column.get('property') === filterProperty;
     });
 
-    var isDateColumn = column.get('caption') === 'columns.date';
-
     if (column) {
+      var isDateColumn = column.get('caption') === 'columns.date';
       column.set('filterValue', filterValue, exactMatch);
       if (isDateColumn) {
-
         return this.updateJobs(filterValue.min, filterValue.max);
       } else {
         this.updateFilters(filterProperty, filterValue, exactMatch);


Mime
View raw message