You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2015/09/28 13:03:26 UTC

ambari git commit: Revert "AMBARI-13254 Components filter works incorrectly on Hosts page. (atkach)"

Repository: ambari
Updated Branches:
  refs/heads/branch-2.1.2 c9ec895ff -> 6fa66c2c8


Revert "AMBARI-13254 Components filter works incorrectly on Hosts page. (atkach)"


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

Branch: refs/heads/branch-2.1.2
Commit: 6fa66c2c843767cd13027100ce13817448b83015
Parents: c9ec895
Author: Andrii Tkach <at...@hortonworks.com>
Authored: Mon Sep 28 14:03:17 2015 +0300
Committer: Andrii Tkach <at...@hortonworks.com>
Committed: Mon Sep 28 14:03:17 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/global/update_controller.js | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6fa66c2c/ambari-web/app/controllers/global/update_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/global/update_controller.js b/ambari-web/app/controllers/global/update_controller.js
index 8eb7bd7..ac19d19 100644
--- a/ambari-web/app/controllers/global/update_controller.js
+++ b/ambari-web/app/controllers/global/update_controller.js
@@ -338,6 +338,12 @@ App.UpdateController = Em.Controller.extend({
     var hostNames = data.items.mapProperty('Hosts.host_name');
     var skipCall = hostNames.length === 0;
 
+    /**
+     * exclude pagination parameters as they were applied in previous call
+     * to obtain hostnames of filtered hosts
+     */
+    preLoadKeys = preLoadKeys.concat(this.get('paginationKeys'));
+
     var itemTotal = parseInt(data.itemTotal);
     if (!isNaN(itemTotal)) {
       App.router.set('mainHostController.filteredCount', itemTotal);