Skip to content

Commit 0f85446

Browse files
authored
Fix deeplinks format to work across all clouds (#1044)
Tested on native databricks, azure, gcp, and aws. Pipeline links seem to work fine too, as they already use "hash" links
1 parent 62a47e3 commit 0f85446

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

packages/databricks-vscode/src/ui/bundle-resource-explorer/JobTreeNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class JobTreeNode implements BundleResourceExplorerTreeNode {
2222
return undefined;
2323
}
2424

25-
return `${host.toString()}jobs/${this.data.id}`;
25+
return `${host.toString()}#job/${this.data.id}`;
2626
}
2727

2828
constructor(

packages/databricks-vscode/src/ui/bundle-resource-explorer/TaskRunStatusTreeNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class TaskRunStatusTreeNode implements BundleResourceExplorerTreeNode {
2424
return undefined;
2525
}
2626

27-
return `${host.toString()}jobs/${this.jobId}/runs/${
27+
return `${host.toString()}#job/${this.jobId}/run/${
2828
this.runDetails.run_id
2929
}`;
3030
}

packages/databricks-vscode/src/ui/bundle-resource-explorer/TaskTreeNode.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ export class TaskTreeNode implements BundleResourceExplorerTreeNode {
3333
return undefined;
3434
}
3535

36-
return `${host.toString()}jobs/${this.jobId}/tasks/${this.taskKey}`;
36+
return `${host.toString()}#job/${this.jobId}/tasks/task/${
37+
this.taskKey
38+
}`;
3739
}
3840
constructor(
3941
private readonly context: ExtensionContext,

0 commit comments

Comments
 (0)