Return-Path: X-Original-To: apmail-incubator-ambari-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 77365D2F4 for ; Tue, 15 Jan 2013 20:50:19 +0000 (UTC) Received: (qmail 56463 invoked by uid 500); 15 Jan 2013 20:50:19 -0000 Delivered-To: apmail-incubator-ambari-commits-archive@incubator.apache.org Received: (qmail 56439 invoked by uid 500); 15 Jan 2013 20:50:19 -0000 Mailing-List: contact ambari-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-commits@incubator.apache.org Received: (qmail 56432 invoked by uid 99); 15 Jan 2013 20:50:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2013 20:50:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2013 20:50:18 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 39AA223888FE; Tue, 15 Jan 2013 20:49:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: ambari-commits@incubator.apache.org From: yusaku@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130115204959.39AA223888FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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':