Repository: spark
Updated Branches:
  refs/heads/branch-1.4 fe3c7340f -> e319719e0


[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

(cherry picked from commit ad92af9dbbd0c4e1224cca26da166382ed4f15b9)
Signed-off-by: Andrew Or <[email protected]>


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

Branch: refs/heads/branch-1.4
Commit: e319719e06c75a5c0fa1a7bf2adf775f50ccf551
Parents: fe3c734
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:40 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/e319719e/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