incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject svn commit: r1433635 - in /incubator/ambari/trunk: CHANGES.txt ambari-web/app/mappers/service_mapper.js
Date Tue, 15 Jan 2013 20:49:59 GMT
Author: yusaku
Date: Tue Jan 15 20:49:58 2013
New Revision: 1433635

URL: http://svn.apache.org/viewvc?rev=1433635&view=rev
Log:
AMBARI-1184. After adding hosts, the host count shown in the Dashboard is incorrect. (yusaku)

Modified:
    incubator/ambari/trunk/CHANGES.txt
    incubator/ambari/trunk/ambari-web/app/mappers/service_mapper.js

Modified: incubator/ambari/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1433635&r1=1433634&r2=1433635&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Tue Jan 15 20:49:58 2013
@@ -28,6 +28,9 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
+ AMBARI-1184. After adding hosts, the host count shown in the Dashboard is
+ incorrect. (yusaku)
+
 AMBARI-1.2.0 branch:
 
  INCOMPATIBLE CHANGES

Modified: incubator/ambari/trunk/ambari-web/app/mappers/service_mapper.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/mappers/service_mapper.js?rev=1433635&r1=1433634&r2=1433635&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/mappers/service_mapper.js (original)
+++ incubator/ambari/trunk/ambari-web/app/mappers/service_mapper.js Tue Jan 15 20:49:58 2013
@@ -259,6 +259,14 @@ App.servicesMapper = App.QuickDataMapper
               dataNodes.pushObject(App.Host.find(ldn));
             });
           }
+          // Data nodes
+          dataNodes = e.get('dataNodes');
+          if (dataNodes) {
+            dataNodes.clear();
+            finalJson.data_nodes.forEach(function (ldn) {
+              dataNodes.pushObject(App.Host.find(ldn));
+            });
+          }
         });
         break;
       case 'MAPREDUCE':



Mime
View raw message