Skip to content

Commit ad92af9

Browse files
sarutakAndrew Or
authored andcommitted
[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
1 parent 8ab1450 commit ad92af9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/src/main/resources/org/apache/spark/ui/static/spark-dag-viz.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ function renderDagVizForJob(svgContainer) {
186186
var stageId = metadata.attr("stage-id");
187187
var containerId = VizConstants.graphPrefix + stageId;
188188
// Link each graph to the corresponding stage page (TODO: handle stage attempts)
189-
var stageLink = "/stages/stage/?id=" +
190-
stageId.replace(VizConstants.stagePrefix, "") + "&attempt=0&expandDagViz=true";
189+
var stageLink = $("#stage-" + stageId.replace(VizConstants.stagePrefix, "") + "-0")
190+
.find("a")
191+
.attr("href") + "&expandDagViz=true";
191192
var container = svgContainer
192193
.append("a")
193194
.attr("xlink:href", stageLink)

0 commit comments

Comments
 (0)