flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject [1/4] incubator-flink git commit: [FLINK-1316] [web client] Fix plan display for nodes referenced from multiple closures.
Date Wed, 10 Dec 2014 14:50:37 GMT
Repository: incubator-flink
Updated Branches:
  refs/heads/master 26820ea70 -> 6d69f697f


[FLINK-1316] [web client] Fix plan display for nodes referenced from multiple closures.


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

Branch: refs/heads/master
Commit: a79ea784e6c5ee491cecf5c93aad2248029e3c4b
Parents: ac80458
Author: Stephan Ewen <sewen@apache.org>
Authored: Wed Dec 10 15:23:12 2014 +0100
Committer: Stephan Ewen <sewen@apache.org>
Committed: Wed Dec 10 15:42:48 2014 +0100

----------------------------------------------------------------------
 flink-clients/resources/web-docs/js/graphCreator.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/a79ea784/flink-clients/resources/web-docs/js/graphCreator.js
----------------------------------------------------------------------
diff --git a/flink-clients/resources/web-docs/js/graphCreator.js b/flink-clients/resources/web-docs/js/graphCreator.js
index bbd71b1..86c8c81 100644
--- a/flink-clients/resources/web-docs/js/graphCreator.js
+++ b/flink-clients/resources/web-docs/js/graphCreator.js
@@ -175,8 +175,11 @@ function loadJsonToDagre(data){
 					g.addEdge(null, el.predecessors[j].id, el.id, { label: createLabelEdge(el.predecessors[j])
});	
 				} else {
 					var missingNode = searchForNode(el.predecessors[j].id);
-					g.addNode(missingNode.id, {label: createLabelNode(missingNode, "mirror")});
-					g.addEdge(null, missingNode.id, el.id, { label: createLabelEdge(missingNode) });
+					if (missingNode.alreadyAdded != true) {
+						missingNode.alreadyAdded = true;
+						g.addNode(missingNode.id, {label: createLabelNode(missingNode, "mirror")});
+						g.addEdge(null, missingNode.id, el.id, { label: createLabelEdge(missingNode) });
+					}
 				}
 			}
 		}


Mime
View raw message