Return-Path: X-Original-To: apmail-ambari-commits-archive@www.apache.org Delivered-To: apmail-ambari-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 10DBB17F8F for ; Fri, 31 Oct 2014 01:55:04 +0000 (UTC) Received: (qmail 76588 invoked by uid 500); 31 Oct 2014 01:55:04 -0000 Delivered-To: apmail-ambari-commits-archive@ambari.apache.org Received: (qmail 76554 invoked by uid 500); 31 Oct 2014 01:55:03 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 76544 invoked by uid 99); 31 Oct 2014 01:55:03 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Oct 2014 01:55:03 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id AEEE1A058AE; Fri, 31 Oct 2014 01:55:03 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: srimanth@apache.org To: commits@ambari.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: AMBARI-8057. Flume: Clicking on host in Flume agent table does not show agent graph sections (srimanth) Date: Fri, 31 Oct 2014 01:55:03 +0000 (UTC) Repository: ambari Updated Branches: refs/heads/branch-1.7.0 27e85f624 -> 626bf2a19 AMBARI-8057. Flume: Clicking on host in Flume agent table does not show agent graph sections (srimanth) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/626bf2a1 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/626bf2a1 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/626bf2a1 Branch: refs/heads/branch-1.7.0 Commit: 626bf2a19738783b0ab67c6fd78291d5f7ca8793 Parents: 27e85f6 Author: Srimanth Gunturi Authored: Thu Oct 30 18:45:06 2014 -0700 Committer: Srimanth Gunturi Committed: Thu Oct 30 18:45:06 2014 -0700 ---------------------------------------------------------------------- .../HDP/2.0.6/services/FLUME/configuration/flume-conf.xml | 4 +++- ambari-web/app/templates/main/service/services/flume.hbs | 2 +- ambari-web/app/utils/config.js | 6 ++++++ ambari-web/app/views/main/service/services/flume.js | 10 +++++++--- 4 files changed, 17 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/626bf2a1/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/FLUME/configuration/flume-conf.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/FLUME/configuration/flume-conf.xml b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/FLUME/configuration/flume-conf.xml index 74a4c15..8ff764b 100644 --- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/FLUME/configuration/flume-conf.xml +++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/FLUME/configuration/flume-conf.xml @@ -23,7 +23,9 @@ content - Describe all the Flume agent configurations + Flume agent configurations. + Specifying the configuration here applies to all hosts in this configuration-group. Please use host specific configuration-groups to provide different configurations on different hosts. + For configuring multiple agents on the same host, provide the combined agent configurations here. Each agent should have a different name. # Flume agent config http://git-wip-us.apache.org/repos/asf/ambari/blob/626bf2a1/ambari-web/app/templates/main/service/services/flume.hbs ---------------------------------------------------------------------- diff --git a/ambari-web/app/templates/main/service/services/flume.hbs b/ambari-web/app/templates/main/service/services/flume.hbs index 5bdf242..7d6a386 100644 --- a/ambari-web/app/templates/main/service/services/flume.hbs +++ b/ambari-web/app/templates/main/service/services/flume.hbs @@ -36,7 +36,7 @@ {{#view view.agentView contentBinding="host"}} - + {{host.hostName}} http://git-wip-us.apache.org/repos/asf/ambari/blob/626bf2a1/ambari-web/app/utils/config.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/utils/config.js b/ambari-web/app/utils/config.js index 75eda91..ecaa9ae 100644 --- a/ambari-web/app/utils/config.js +++ b/ambari-web/app/utils/config.js @@ -262,6 +262,12 @@ App.config = Em.Object.create({ config.category = categoryMetaData.get('name'); if (!isAdvanced) config.isUserProperty = true; } + if (isAdvanced) { + var advancedProperty = advancedConfigs.filterProperty('filename', config.filename).findProperty('name', config.name); + if (advancedProperty) { + config.description = advancedProperty.description; + } + } } else { var advancedProperty = null; var configType = this.getConfigTagFromFileName(config.filename); http://git-wip-us.apache.org/repos/asf/ambari/blob/626bf2a1/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 b2d29d3..4be5018 100644 --- a/ambari-web/app/views/main/service/services/flume.js +++ b/ambari-web/app/views/main/service/services/flume.js @@ -70,9 +70,13 @@ App.MainDashboardServiceFlumeView = App.TableView.extend({ click: function (e) { var numberOfAgents = this.get('content.agents').length; - if($(e.target).attr('id') == "flume-host-agent-row"){ - $(e.currentTarget).parents("table:first").find('tr').removeClass('highlight'); - $(e.currentTarget).addClass('highlight').nextAll("tr").slice(0,numberOfAgents - 1).addClass('highlight'); + if($(e.target).attr('class') == "agent-host-name" || $(e.target).attr('class') == "agent-host-link"){ + var currentTargetRow = $(e.currentTarget); + if ($(e.target).attr('class') == "agent-host-link") { + currentTargetRow = currentTargetRow.parent(".agent-host-name").parent(); + } + currentTargetRow.parents("table:first").find('tr').removeClass('highlight'); + currentTargetRow.addClass('highlight').nextAll("tr").slice(0,numberOfAgents - 1).addClass('highlight'); this.get('parentView').showAgentInfo(this.get('content')); } }