You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tez.apache.org by je...@apache.org on 2017/05/19 19:28:56 UTC
tez git commit: TEZ-3662. Vertex Duration in 0.9 Tez UI regression
from 0.7 (jeagles)
Repository: tez
Updated Branches:
refs/heads/master ca834d4f0 -> 11767338d
TEZ-3662. Vertex Duration in 0.9 Tez UI regression from 0.7 (jeagles)
Project: http://git-wip-us.apache.org/repos/asf/tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/11767338
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/11767338
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/11767338
Branch: refs/heads/master
Commit: 11767338d00067239c49ea60923f2c5fb8c41992
Parents: ca834d4
Author: Jonathan Eagles <je...@yahoo-inc.com>
Authored: Fri May 19 14:28:49 2017 -0500
Committer: Jonathan Eagles <je...@yahoo-inc.com>
Committed: Fri May 19 14:28:49 2017 -0500
----------------------------------------------------------------------
tez-ui/src/main/webapp/app/models/vertex.js | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tez/blob/11767338/tez-ui/src/main/webapp/app/models/vertex.js
----------------------------------------------------------------------
diff --git a/tez-ui/src/main/webapp/app/models/vertex.js b/tez-ui/src/main/webapp/app/models/vertex.js
index a0ffd34..a5904ef 100644
--- a/tez-ui/src/main/webapp/app/models/vertex.js
+++ b/tez-ui/src/main/webapp/app/models/vertex.js
@@ -21,11 +21,14 @@ import DS from 'ember-data';
import AMTimelineModel from './am-timeline';
-function valueComputerFactory(path1, path2) {
+function valueComputerFactory(path1, path2, path3) {
return function () {
var value = this.get(path1);
- if(value === undefined || value === null){
- value = this.get(path2);
+ if(path2 && (value === undefined || value === null)){
+ value = this.get(path2);
+ }
+ if(path3 && (value === undefined || value === null)){
+ value = this.get(path3);
}
return value;
};
@@ -69,8 +72,8 @@ export default AMTimelineModel.extend({
initTime: Ember.computed("am.initTime", "_initTime",
valueComputerFactory("am.initTime", "_initTime")
),
- startTime: Ember.computed("am.startTime", "_startTime",
- valueComputerFactory("am.startTime", "_startTime")
+ startTime: Ember.computed("firstTaskStartTime", "am.startTime", "_startTime",
+ valueComputerFactory("firstTaskStartTime", "am.startTime", "_startTime")
),
endTime: Ember.computed("am.endTime", "_endTime",
valueComputerFactory("am.endTime", "_endTime")