ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atk...@apache.org
Subject git commit: AMBARI-6045 Master components are missing. (atkach)
Date Fri, 06 Jun 2014 11:25:05 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 9f9ea5458 -> 0ba68682f


AMBARI-6045 Master components are missing. (atkach)


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

Branch: refs/heads/trunk
Commit: 0ba68682faf6769b94514096b163720acf779d11
Parents: 9f9ea54
Author: atkach <atkach@hortonworks.com>
Authored: Fri Jun 6 14:23:24 2014 +0300
Committer: atkach <atkach@hortonworks.com>
Committed: Fri Jun 6 14:23:24 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/mappers/service_metrics_mapper.js | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/0ba68682/ambari-web/app/mappers/service_metrics_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/service_metrics_mapper.js b/ambari-web/app/mappers/service_metrics_mapper.js
index d221443..aa70ec1 100644
--- a/ambari-web/app/mappers/service_metrics_mapper.js
+++ b/ambari-web/app/mappers/service_metrics_mapper.js
@@ -209,12 +209,9 @@ App.serviceMetricsMapper = App.QuickDataMapper.create({
       //parse service metrics from components
       services.forEach(function (item) {
         var finalJson = [];
-        var serviceData = App.cache['hostComponentsOnService'][item.ServiceInfo.service_name];
-        //service can have zero number of host-components
-        if (serviceData) {
-          item.host_components = serviceData.host_components;
-          item.host_components.sort();
-        }
+
+        item.host_components = hostComponents.filterProperty('service_id', item.ServiceInfo.service_name).mapProperty('id');
+        item.host_components.sort();
 
         if (item && item.ServiceInfo && item.ServiceInfo.service_name ==
"HDFS") {
           finalJson = this.hdfsMapper(item);


Mime
View raw message