summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Zang <rzang@apache.org>2016-11-03 13:18:16 -0700
committerRichard Zang <rzang@apache.org>2016-11-03 13:18:16 -0700
commit8e21cf417d6e41bfa40d643ad4be5c62e4ed6ef2 (patch)
treeb34df00b32c8397f8c8d5355ba7da2a97aa23db6
parentd3cf46b0d47979e949a4418187a7af81f1bd0cb8 (diff)
Revert "AMBARI-17703 - Hosts page: after component filter hosts have wrong list of components (rzang)"
This reverts commit 0d477f96c35cf619560ff4542d6069bb45d409e8.
-rw-r--r--ambari-web/app/controllers/global/update_controller.js4
-rw-r--r--ambari-web/app/controllers/main/host.js3
2 files changed, 3 insertions, 4 deletions
diff --git a/ambari-web/app/controllers/global/update_controller.js b/ambari-web/app/controllers/global/update_controller.js
index 02f66d1fe6..fda1704fd7 100644
--- a/ambari-web/app/controllers/global/update_controller.js
+++ b/ambari-web/app/controllers/global/update_controller.js
@@ -366,7 +366,7 @@ App.UpdateController = Em.Controller.extend({
var preLoadKeys = this.get('hostsPreLoadKeys');
if (this.get('queryParams.Hosts').length > 0 && this.get('queryParams.Hosts').filter(function (param) {
- return param.isComponentRelatedFilter;
+ return preLoadKeys.contains(param.key);
}, this).length > 0) {
this.getHostByHostComponents(callback);
return true;
@@ -407,7 +407,7 @@ App.UpdateController = Em.Controller.extend({
params.callback(skipCall);
} else {
queryParams = queryParams.filter(function (param) {
- return !param.isComponentRelatedFilter;
+ return !preLoadKeys.contains(param.key);
});
queryParams = [{
diff --git a/ambari-web/app/controllers/main/host.js b/ambari-web/app/controllers/main/host.js
index b85ed95bf4..cea40cbb00 100644
--- a/ambari-web/app/controllers/main/host.js
+++ b/ambari-web/app/controllers/main/host.js
@@ -258,8 +258,7 @@ App.MainHostController = Em.ArrayController.extend(App.TableServerMixin, {
key: property.key,
value: filter.value,
type: property.type,
- isFilter: true,
- isComponentRelatedFilter: ([13,15].indexOf(filter.iColumn) != -1)
+ isFilter: true
};
if (filter.type === 'string' && sortProperties.someProperty('name', colPropAssoc[filter.iColumn])) {
if (Em.isArray(filter.value)) {