Updated Branches:
  refs/heads/trunk 4aa12f4a7 -> 1d871813e

AMBARI-2823: Datanode and RegionServer live count in service summary page is 
not updated dynamically. (jaimin)


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

Branch: refs/heads/trunk
Commit: 1d871813ee480fc4c0e44f9bb3273b192d6452fb
Parents: 4aa12f4
Author: Jaimin Jetly <[email protected]>
Authored: Tue Aug 6 15:20:35 2013 -0700
Committer: Jaimin Jetly <[email protected]>
Committed: Tue Aug 6 15:20:51 2013 -0700

----------------------------------------------------------------------
 ambari-web/app/templates/main/dashboard/service/hbase.hbs | 2 +-
 ambari-web/app/views/main/dashboard/service/hbase.js      | 4 ++--
 ambari-web/app/views/main/dashboard/service/hdfs.js       | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/1d871813/ambari-web/app/templates/main/dashboard/service/hbase.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/dashboard/service/hbase.hbs 
b/ambari-web/app/templates/main/dashboard/service/hbase.hbs
index e93c775..3a44c1a 100644
--- a/ambari-web/app/templates/main/dashboard/service/hbase.hbs
+++ b/ambari-web/app/templates/main/dashboard/service/hbase.hbs
@@ -49,7 +49,7 @@
       <tr>
         <td>{{t dashboard.services.hbase.regionServers}}</td>
          <td>
-            <span 
class="green-live">{{view.liveRegionServes.length}}/{{view.service.regionServers.length}}
 </span> {{t services.service.summary.RegionServersLIVE}}
+            <span 
class="green-live">{{view.liveRegionServers.length}}/{{view.service.regionServers.length}}
 </span> {{t services.service.summary.RegionServersLIVE}}
             <div class="summary-view-host">
               <a href="#" {{action filterHosts 
view.regionServerComponent}}>{{view.regionServesText}}</a>
             </div>

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/1d871813/ambari-web/app/views/main/dashboard/service/hbase.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/dashboard/service/hbase.js 
b/ambari-web/app/views/main/dashboard/service/hbase.js
index 9f95d57..b22d380 100644
--- a/ambari-web/app/views/main/dashboard/service/hbase.js
+++ b/ambari-web/app/views/main/dashboard/service/hbase.js
@@ -39,9 +39,9 @@ App.MainDashboardServiceHbaseView = 
App.MainDashboardServiceView.extend({
   }.property('masters'),
 
 
-  liveRegionServes: function () {
+  liveRegionServers: function () {
     return App.HostComponent.find().filterProperty('componentName', 
'HBASE_REGIONSERVER').filterProperty("workStatus","STARTED");
-  }.property(),
+  }.property('service.hostComponents.@each'),
 
   regionServesText: function () {
     if(this.get('service.regionServers').get("length") > 1){

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/1d871813/ambari-web/app/views/main/dashboard/service/hdfs.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/dashboard/service/hdfs.js 
b/ambari-web/app/views/main/dashboard/service/hdfs.js
index 6031341..7ac93bc 100644
--- a/ambari-web/app/views/main/dashboard/service/hdfs.js
+++ b/ambari-web/app/views/main/dashboard/service/hdfs.js
@@ -39,10 +39,10 @@ App.MainDashboardServiceHdfsView = 
App.MainDashboardServiceView.extend({
 
   dataNodesLive: function(){
     return App.HostComponent.find().filterProperty('componentName', 
'DATANODE').filterProperty("workStatus","STARTED");
-  }.property('service'),
+  }.property('service.hostComponents.@each'),
   dataNodesDead: function(){
     return App.HostComponent.find().filterProperty('componentName', 
'DATANODE').filterProperty("workStatus","INSTALLED");
-  }.property('service'),
+  }.property('service.hostComponents.@each'),
 
   dataNodeHostText: function () {
     if(this.get("service.dataNodes") > 1){

Reply via email to