浏览代码

AMBARI-4247 Restart marker does not show up sometimes in the Hosts page. (atkach)

atkach 11 年之前
父节点
当前提交
a4011020db

+ 1 - 1
ambari-web/app/controllers/global/update_controller.js

@@ -191,7 +191,7 @@ App.UpdateController = Em.Controller.extend({
   },
   updateComponentConfig: function (callback) {
     var testUrl = '/data/services/host_component_stale_configs.json';
-    var componentConfigUrl = this.getUrl(testUrl, '/host_components?fields=HostRoles/component_name&HostRoles/stale_configs=true');
+    var componentConfigUrl = this.getUrl(testUrl, '/host_components?fields=HostRoles/host_name&HostRoles/stale_configs=true&minimal_response=true');
     App.HttpClient.get(componentConfigUrl, App.componentConfigMapper, {
       complete: callback
     });

+ 1 - 1
ambari-web/app/models/host.js

@@ -90,7 +90,7 @@ App.Host = DS.Model.extend({
    */
   componentsInMaintenanceCount: function() {
     return this.get('hostComponents').filterProperty('workStatus', App.HostComponentStatus.maintenance).length;
-  }.property('hostsComponents.@each.workStatus').volatile(),
+  }.property('hostComponents.@each.workStatus'),
 
   /**
    * Truncate hostName if it longer than 43 symbols

+ 1 - 2
ambari-web/app/views/main/host.js

@@ -44,7 +44,6 @@ App.MainHostView = App.TableView.extend({
   didInsertElement: function() {
     this.addObserver('controller.clearFilters', this, this.clearFiltersObs);
     this.clearFiltersObs();
-    this.addObserver('content.@each.hostComponents.@each', this, this.filter);
   },
 
   sortView: sort.wrapperView,
@@ -170,7 +169,7 @@ App.MainHostView = App.TableView.extend({
           }
         }
       }
-    }.property('view.content.@each.healthClass', 'view.content.@each.criticalAlertsCount', 'view.content.@each.componentsInMaintenanceCount', 'view.content.@each.hostComponents.@each.staleConfigs'),
+    }.property('view.content.@each.healthClass', 'view.content.@each.criticalAlertsCount', 'view.content.@each.componentsInMaintenanceCount', 'view.content.@each.componentsWithStaleConfigsCount'),
 
     label: function () {
       return "%@ (%@)".fmt(this.get('value'), this.get('hostsCount'));