Conversation
src/main/frontend/pipeline-graph-view/pipeline-graph/main/support/nodes.tsx
Outdated
Show resolved
Hide resolved
…ort/nodes.tsx Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
|
Stage view is broke ( |
|
On the screenshots, the new icons look slightly misaligned vertically, shifted to the top. |
Good spot, fixed. |
|
404 when clicking on a stage from either the job page or the Stages page |
const currentPath = this.props.path;
let nodeUrl = "";
if (currentPath) {
const runId = currentPath.split("=")[1];
if (currentPath.startsWith("multi-pipeline-graph/")) {
nodeUrl = `${runId}/pipeline-console?selected-node=${node.id}`
} else {
nodeUrl = `../${runId}/pipeline-console?selected-node=${node.id}`
}
nodes.push({...node, url: nodeUrl});
continue;
}
const newPath = this.getTreePath();
if (newPath.startsWith("pipeline-graph/tree")) {
nodeUrl = `pipeline-console?selected-node=${node.id}`
} else {
nodeUrl = `../pipeline-console?selected-node=${node.id}`
}
nodes.push({...node, url: nodeUrl});I've put in a very hacky (working) way of pulling the URL - happy to move it to the API (and provide absolute urls in the payload) if thats cleaner? |
|
Absolute URLs in the API would be cleaner if not too hard, currently its a pain, source of mistakes and has been broken before. |
|
Added a |
Seems fine, can you take a look at the build failure please? |

Raised at the recent Contributor Summit, it'd be cool if we could CMD click nodes in the graph. This PR does just that, as well as a few tidy ups along the way.
What's changed?
CMDclickableBefore

After

Testing done
Submitter checklist