tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ss...@apache.org
Subject [03/50] [abbrv] tez git commit: TEZ-2318. Tez UI: source and sink page is broken as they are not populated. (Sreenath Somarajapuram via pramachandran)
Date Fri, 24 Apr 2015 00:25:57 GMT
TEZ-2318. Tez UI: source and sink page is broken as they are not populated. (Sreenath Somarajapuram
via pramachandran)


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

Branch: refs/heads/TEZ-2003
Commit: fa72bdc7f53dd9e9d0f74fef6b17af679ae3cc83
Parents: 6019bbc
Author: Prakash Ramachandran <pramachandran@hortonworks.com>
Authored: Tue Apr 14 20:07:57 2015 +0530
Committer: Prakash Ramachandran <pramachandran@hortonworks.com>
Committed: Tue Apr 14 20:07:57 2015 +0530

----------------------------------------------------------------------
 CHANGES.txt                                           |  1 +
 .../webapp/app/scripts/models/TimelineRestAdapter.js  | 14 ++++++++++----
 2 files changed, 11 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/fa72bdc7/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 5fe83cb..b47cf7d 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -9,6 +9,7 @@ INCOMPATIBLE CHANGES
   TEZ-1993. Implement a pluggable InputSizeEstimator for grouping fairly
 
 ALL CHANGES:
+  TEZ-2318. Tez UI: source and sink page is broken as they are not populated.
   TEZ-2016. Tez UI: Dag View Fit and Finish
   TEZ-2252. Tez UI: in graphical view some of the sinks are hidden as they overlap
   TEZ-2275. Tez UI: enable faster loading and caching of data in tables

http://git-wip-us.apache.org/repos/asf/tez/blob/fa72bdc7/tez-ui/src/main/webapp/app/scripts/models/TimelineRestAdapter.js
----------------------------------------------------------------------
diff --git a/tez-ui/src/main/webapp/app/scripts/models/TimelineRestAdapter.js b/tez-ui/src/main/webapp/app/scripts/models/TimelineRestAdapter.js
index a54ded2..9c84771 100644
--- a/tez-ui/src/main/webapp/app/scripts/models/TimelineRestAdapter.js
+++ b/tez-ui/src/main/webapp/app/scripts/models/TimelineRestAdapter.js
@@ -245,12 +245,13 @@ App.VertexSerializer = App.TimelineSerializer.extend({
 
   normalizePayload: function(rawPayload, property) {
     var pluralizedPoperty,
+        normalizedPayload,
         n;
 
     property = property || 'vertex',
     pluralizedPoperty = property.pluralize();;
     if (!!rawPayload[pluralizedPoperty]) {
-      var normalizedPayload = {
+      normalizedPayload = {
         inputs: [],
         outputs: [],
       };
@@ -268,9 +269,14 @@ App.VertexSerializer = App.TimelineSerializer.extend({
 
       return normalizedPayload;
     } else {
-      n = {};
-      n[property] = this._normalizeSingleVertexPayload(rawPayload[property]).vertex;
-      return n;
+      n = this._normalizeSingleVertexPayload(rawPayload[property]);
+      normalizedPayload = {
+        inputs : n.inputs,
+        outputs: n.outputs
+      };
+      normalizedPayload[property] = n.vertex;
+
+      return normalizedPayload;
     }
   },
 


Mime
View raw message