You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ak...@apache.org on 2014/04/29 17:07:36 UTC
git commit: AMBARI-5619. Unexpected behavior of Flume Agents filter
on Summary page. (akovalenko)
Repository: ambari
Updated Branches:
refs/heads/trunk 06b6ca7f5 -> 35f618e36
AMBARI-5619. Unexpected behavior of Flume Agents filter on Summary page. (akovalenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/35f618e3
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/35f618e3
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/35f618e3
Branch: refs/heads/trunk
Commit: 35f618e366c4fa80b358b32a2c640ea616cb7fd0
Parents: 06b6ca7
Author: Aleksandr Kovalenko <ak...@hortonworks.com>
Authored: Tue Apr 29 18:02:54 2014 +0300
Committer: Aleksandr Kovalenko <ak...@hortonworks.com>
Committed: Tue Apr 29 18:02:54 2014 +0300
----------------------------------------------------------------------
ambari-web/app/views/main/service/services/flume.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/35f618e3/ambari-web/app/views/main/service/services/flume.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/service/services/flume.js b/ambari-web/app/views/main/service/services/flume.js
index 12a588c..300e3b7 100644
--- a/ambari-web/app/views/main/service/services/flume.js
+++ b/ambari-web/app/views/main/service/services/flume.js
@@ -37,13 +37,13 @@ App.MainDashboardServiceFlumeView = App.TableView.extend({
summaryHeader: function () {
var agents = App.FlumeService.find().objectAt(0).get('agents');//this.get('service.agents');
var agentCount = agents.get('length');
- var hostCount = agents.mapProperty('host').uniq().get('length');
+ var hostCount = this.get('service.hostComponents').filterProperty('componentName', 'FLUME_HANDLER').length;
var prefix = agentCount == 1 ? this.t("dashboard.services.flume.summary.single") :
this.t("dashboard.services.flume.summary.multiple").format(agentCount);
var suffix = hostCount == 1 ? this.t("dashboard.services.flume.summary.hosts.single") :
this.t("dashboard.services.flume.summary.hosts.multiple").format(hostCount);
return prefix + suffix;
- }.property('service.agents'),
+ }.property('service.agents', 'service.hostComponents.length'),
flumeHandlerComponent: function () {
return App.HostComponent.find().findProperty('componentName', 'FLUME_HANDLER');