Repository: ambari
Updated Branches:
  refs/heads/trunk a8dd52b19 -> 58f4e5b80


AMBARI-15675. Hosts page filtering: error if we filter component by Upgrade 
Failed state (rzang)


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

Branch: refs/heads/trunk
Commit: 58f4e5b809ce9b58c61918bfc367d5e1dea98398
Parents: a8dd52b
Author: Richard Zang <rz...@apache.org>
Authored: Mon Apr 4 11:22:21 2016 -0700
Committer: Richard Zang <rz...@apache.org>
Committed: Mon Apr 4 11:22:53 2016 -0700

----------------------------------------------------------------------
 ambari-web/app/views/main/host/combo_search_box.js | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/58f4e5b8/ambari-web/app/views/main/host/combo_search_box.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/host/combo_search_box.js 
b/ambari-web/app/views/main/host/combo_search_box.js
index 9cc1023..b31fe81 100644
--- a/ambari-web/app/views/main/host/combo_search_box.js
+++ b/ambari-web/app/views/main/host/combo_search_box.js
@@ -180,10 +180,13 @@ App.MainHostComboSearchBoxView = Em.View.extend({
               map['All'] = 'ALL';
               var currentComponentFacets = self.getComponentStateFacets(null, 
true);
               if (currentComponentFacets.length == 0) {
-                list = 
list.concat(App.HostComponentStatus.getStatusesList().map(function (status) {
-                  map[App.HostComponentStatus.getTextStatus(status)] = status;
-                  return App.HostComponentStatus.getTextStatus(status);
-                })).concat([
+                list = list.concat(App.HostComponentStatus.getStatusesList()
+                .reject(function(status){return status == "UPGRADE_FAILED"}) 
// take out 'UPGRADE_FAILED'
+                .map(function (status) {
+                    map[App.HostComponentStatus.getTextStatus(status)] = 
status;
+                    return App.HostComponentStatus.getTextStatus(status);
+                }))
+                .concat([
                     "Inservice",
                     "Decommissioned",
                     "Decommissioning",

Reply via email to