You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sr...@apache.org on 2014/02/11 02:52:57 UTC
git commit: AMBARI-4588. Vertices in Tez DAG details page should be
sorted (srimanth)
Updated Branches:
refs/heads/trunk c9ddb9e84 -> ccb61e86d
AMBARI-4588. Vertices in Tez DAG details page should be sorted (srimanth)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ccb61e86
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ccb61e86
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ccb61e86
Branch: refs/heads/trunk
Commit: ccb61e86d1dc1e5c4e5f5f532471fc6ec9749189
Parents: c9ddb9e
Author: Srimanth Gunturi <sg...@hortonworks.com>
Authored: Mon Feb 10 17:44:51 2014 -0800
Committer: Srimanth Gunturi <sg...@hortonworks.com>
Committed: Mon Feb 10 17:44:51 2014 -0800
----------------------------------------------------------------------
ambari-web/app/templates/main/jobs/hive_job_details.hbs | 2 +-
ambari-web/app/views/main/jobs/hive_job_details_view.js | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/ccb61e86/ambari-web/app/templates/main/jobs/hive_job_details.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/jobs/hive_job_details.hbs b/ambari-web/app/templates/main/jobs/hive_job_details.hbs
index dd72926..88d9b76 100644
--- a/ambari-web/app/templates/main/jobs/hive_job_details.hbs
+++ b/ambari-web/app/templates/main/jobs/hive_job_details.hbs
@@ -72,7 +72,7 @@
</tr>
</thead>
<tbody>
- {{#each vertex in view.content.tezDag.vertices}}
+ {{#each vertex in view.sortedVertices}}
<tr {{bindAttr class="vertex.isSelected:info"}}>
<td>
<a title="{{vertex.name}}" href="#" {{action "doSelectVertex" vertex target="view"}}>{{vertex.name}}</a>
http://git-wip-us.apache.org/repos/asf/ambari/blob/ccb61e86/ambari-web/app/views/main/jobs/hive_job_details_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/jobs/hive_job_details_view.js b/ambari-web/app/views/main/jobs/hive_job_details_view.js
index 0bd7765..7250fd8 100644
--- a/ambari-web/app/views/main/jobs/hive_job_details_view.js
+++ b/ambari-web/app/views/main/jobs/hive_job_details_view.js
@@ -31,6 +31,17 @@ App.MainHiveJobDetailsView = Em.View.extend({
return Em.I18n.t('jobs.hive.tez.metric.'+this.get('summaryMetricType'));
}.property('summaryMetricType'),
+ sortedVertices : function() {
+ var vertices = this.get('content.tezDag.vertices');
+ if (vertices != null) {
+ vertices = vertices.toArray();
+ return vertices.sort(function(v1, v2) {
+ return Ember.compare(v1.get('name'), v2.get('name'));
+ });
+ }
+ return vertices;
+ }.property('content.tezDag.vertices'),
+
initialDataLoaded : function() {
var loaded = this.get('controller.loaded');
if (loaded) {