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:06:39 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 7c0357c49 -> 83cb06a76


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/83cb06a7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/83cb06a7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/83cb06a7

Branch: refs/heads/trunk
Commit: 83cb06a76da7744f71dae1d3d50e6388b2e88121
Parents: 7c0357c
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:35:51 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/83cb06a7/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/83cb06a7/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