Author: yusaku
Date: Fri Feb 22 08:00:42 2013
New Revision: 1448920
URL: http://svn.apache.org/r1448920
Log:
AMBARI-1461. Optimize query for getting service and host component status back
from the server. (yusaku)
Modified:
incubator/ambari/trunk/CHANGES.txt
incubator/ambari/trunk/ambari-web/app/controllers/global/cluster_controller.js
Modified: incubator/ambari/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1448920&r1=1448919&r2=1448920&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Fri Feb 22 08:00:42 2013
@@ -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)
Modified:
incubator/ambari/trunk/ambari-web/app/controllers/global/cluster_controller.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/global/cluster_controller.js?rev=1448920&r1=1448919&r2=1448920&view=diff
==============================================================================
---
incubator/ambari/trunk/ambari-web/app/controllers/global/cluster_controller.js
(original)
+++
incubator/ambari/trunk/ambari-web/app/controllers/global/cluster_controller.js
Fri Feb 22 08:00:42 2013
@@ -259,7 +259,7 @@ App.ClusterController = Em.Controller.ex
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, {