You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2015/04/28 13:17:44 UTC

ambari git commit: AMBARI-10784 Create widget -> Add metric popup: Aggregator Function name should be suffixed to the metric name. (atkach)

Repository: ambari
Updated Branches:
  refs/heads/trunk 7b7b66fd1 -> 2d9171623


AMBARI-10784 Create widget -> Add metric popup: Aggregator Function name should be suffixed to the metric name. (atkach)


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

Branch: refs/heads/trunk
Commit: 2d917162314487f002610b5e0675380fbc26b66f
Parents: 7b7b66f
Author: Andrii Tkach <at...@hortonworks.com>
Authored: Tue Apr 28 13:12:25 2015 +0300
Committer: Andrii Tkach <at...@hortonworks.com>
Committed: Tue Apr 28 14:17:12 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/views/main/service/widgets/create/expression_view.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2d917162/ambari-web/app/views/main/service/widgets/create/expression_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/service/widgets/create/expression_view.js b/ambari-web/app/views/main/service/widgets/create/expression_view.js
index 7c20276..552fef9 100644
--- a/ambari-web/app/views/main/service/widgets/create/expression_view.js
+++ b/ambari-web/app/views/main/service/widgets/create/expression_view.js
@@ -335,6 +335,7 @@ App.WidgetWizardExpressionView = Em.View.extend({
         selectedMetric.set('id', id);
         if (aggregateFunction && aggregateFunction !== 'avg') {
           selectedMetric.set('metricPath', selectedMetric.get('metricPath') + '._' + aggregateFunction);
+          selectedMetric.set('name', selectedMetric.get('name') + '._' + aggregateFunction);
         }
         data.pushObject(selectedMetric);
         this.hide();