Browse Source

AMBARI-1461. Optimize query for getting service and host component status back from the server. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1448920 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 years ago
parent
commit
aa645e2a21
2 changed files with 4 additions and 1 deletions
  1. 3 0
      CHANGES.txt
  2. 1 1
      ambari-web/app/controllers/global/cluster_controller.js

+ 3 - 0
CHANGES.txt

@@ -45,6 +45,9 @@ Trunk (unreleased changes):
 
  IMPROVEMENTS
 
+ AMBARI-1461. Optimize query for getting service and host component status back
+ from the server. (yusaku)
+
  AMBARI-1460. Optimize query call for retrieving host information. (yusaku)
 
  AMBARI-1470. Refactor confirmation popups. (yusaku)

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

@@ -259,7 +259,7 @@ App.ClusterController = Em.Controller.extend({
       return;
     }
     
-    var servicesUrl = this.getUrl('/data/dashboard/services.json', '/services?fields=components/ServiceComponentInfo,components/host_components,components/host_components/HostRoles');
+    var servicesUrl = this.getUrl('/data/dashboard/services.json', '/services?fields=ServiceInfo,components/host_components/HostRoles/desired_state,components/host_components/HostRoles/state');
 
     var self = this;
     App.HttpClient.get(servicesUrl, App.statusMapper, {