Repository: spark
Updated Branches:
  refs/heads/master 8ab1450d3 -> ad92af9db


[SPARK-7664] [WEBUI] DAG visualization: Fix incorrect link paths of DAG.

In JobPage, we can jump a StagePage when we click corresponding box of DAG viz 
but the link path is incorrect.

When we click a box like as follows ...
![screenshot_from_2015-05-15 19 24 
25](https://cloud.githubusercontent.com/assets/4736016/7651528/5f7ef824-fb3c-11e4-9518-8c9ade2dff7a.png)

We jump to index page.
![screenshot_from_2015-05-15 19 24 
45](https://cloud.githubusercontent.com/assets/4736016/7651534/6d666274-fb3c-11e4-971c-c3f2dc2b1da2.png)

Author: Kousuke Saruta <[email protected]>

Closes #6184 from sarutak/fix-link-path-of-dag-viz and squashes the following 
commits:

faba3ba [Kousuke Saruta] Fix a incorrect link


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

Branch: refs/heads/master
Commit: ad92af9dbbd0c4e1224cca26da166382ed4f15b9
Parents: 8ab1450
Author: Kousuke Saruta <[email protected]>
Authored: Fri May 15 11:54:13 2015 -0700
Committer: Andrew Or <[email protected]>
Committed: Fri May 15 11:54:32 2015 -0700

----------------------------------------------------------------------
 .../main/resources/org/apache/spark/ui/static/spark-dag-viz.js  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/ad92af9d/core/src/main/resources/org/apache/spark/ui/static/spark-dag-viz.js
----------------------------------------------------------------------
diff --git 
a/core/src/main/resources/org/apache/spark/ui/static/spark-dag-viz.js 
b/core/src/main/resources/org/apache/spark/ui/static/spark-dag-viz.js
index 8138eb0..ee48fd2 100644
--- a/core/src/main/resources/org/apache/spark/ui/static/spark-dag-viz.js
+++ b/core/src/main/resources/org/apache/spark/ui/static/spark-dag-viz.js
@@ -186,8 +186,9 @@ function renderDagVizForJob(svgContainer) {
     var stageId = metadata.attr("stage-id");
     var containerId = VizConstants.graphPrefix + stageId;
     // Link each graph to the corresponding stage page (TODO: handle stage 
attempts)
-    var stageLink = "/stages/stage/?id=" +
-      stageId.replace(VizConstants.stagePrefix, "") + 
"&attempt=0&expandDagViz=true";
+    var stageLink = $("#stage-" + stageId.replace(VizConstants.stagePrefix, 
"") + "-0")
+      .find("a")
+      .attr("href") + "&expandDagViz=true";
     var container = svgContainer
       .append("a")
       .attr("xlink:href", stageLink)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to