You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by su...@apache.org on 2019/03/06 11:19:55 UTC

[hadoop] branch branch-3.2 updated: YARN-8803. [UI2] Show flow runs in the order of recently created time in graph widgets. Contributed by Akhil PB.

This is an automated email from the ASF dual-hosted git repository.

sunilg pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new aff5973  YARN-8803. [UI2] Show flow runs in the order of recently created time in graph widgets. Contributed by Akhil PB.
aff5973 is described below

commit aff5973401525824ade9e87ca8e4676728d6a88b
Author: Sunil G <su...@apache.org>
AuthorDate: Wed Mar 6 16:49:08 2019 +0530

    YARN-8803. [UI2] Show flow runs in the order of recently created time in graph widgets. Contributed by Akhil PB.
    
    (cherry picked from commit c79f139519e9b2486de31b307d7811b4c2a6b5b0)
---
 .../src/main/webapp/app/controllers/yarn-flow/runs.js            | 2 +-
 .../src/main/webapp/app/models/yarn-flowrun-brief.js             | 9 ++++++---
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/controllers/yarn-flow/runs.js b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/controllers/yarn-flow/runs.js
index def4c12..a6c1462 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/controllers/yarn-flow/runs.js
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/controllers/yarn-flow/runs.js
@@ -165,7 +165,7 @@ export default Ember.Controller.extend({
 
   getSortedVizDataInDesc: function(data) {
     return data.sort(function(d1, d2) {
-      return d2.value - d1.value;
+      return d2.createdTs - d1.createdTs;
     });
   },
 
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-flowrun-brief.js b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-flowrun-brief.js
index 8d9fca3..9bcf1e1 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-flowrun-brief.js
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-flowrun-brief.js
@@ -46,7 +46,8 @@ export default DS.Model.extend({
       label: this.get('runid'),
       value: this.get('runDurationTs'),
       tooltip: this.get("shownid") + "<br>" + Converter.msToElapsedTimeUnit(this.get('runDurationTs')),
-      flowrunUid: this.get('uid')
+      flowrunUid: this.get('uid'),
+      createdTs: this.get('createTimeRaw')
     };
   },
 
@@ -55,7 +56,8 @@ export default DS.Model.extend({
       label: this.get('runid'),
       value: this.get('cpuVCores'),
       tooltip: this.get("shownid") + "<br>" + 'CPU VCores: ' + this.get('cpuVCores'),
-      flowrunUid: this.get('uid')
+      flowrunUid: this.get('uid'),
+      createdTs: this.get('createTimeRaw')
     };
   },
 
@@ -64,7 +66,8 @@ export default DS.Model.extend({
       label: this.get('runid'),
       value: this.get('memoryUsed'),
       tooltip: this.get("shownid") + "<br>" + 'Memory Used: ' + Converter.memoryBytesToMB(this.get('memoryUsed')),
-      flowrunUid: this.get('uid')
+      flowrunUid: this.get('uid'),
+      createdTs: this.get('createTimeRaw')
     };
   }
 });


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org