ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atk...@apache.org
Subject ambari git commit: AMBARI-10784 Create widget -> Add metric popup: Aggregator Function name should be suffixed to the metric name. (atkach)
Date Tue, 28 Apr 2015 11:17:44 GMT
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 <atkach@hortonworks.com>
Authored: Tue Apr 28 13:12:25 2015 +0300
Committer: Andrii Tkach <atkach@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();


Mime
View raw message