Commit 630e267
authored
Fix Volume "Open in Databricks" routing to volume URL (#1925)
## Changes
When opening a Volume from the Unity Catalog explorer, the "Open in
Databricks" action routed to a table-style URL
(/explore/data/<catalog>/<schema>/<name>), which points at a
non-existent table rather than the volume.
getNodeExploreUrl() special-cased models and functions by prefixing
their path segment but had no case for volumes, so volumes fell through
to the default (table) path. Add a "volume" case that prefixes the path
with "volumes/", producing the correct
/explore/data/volumes/<catalog>/<schema>/<name> URL.
## Tests
UnityCatalogTreeDataProvider.test.ts1 parent a56cb82 commit 630e267
2 files changed
Lines changed: 33 additions & 0 deletions
File tree
- packages/databricks-vscode/src/ui/unity-catalog
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
355 | 385 | | |
356 | 386 | | |
357 | 387 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
| |||
0 commit comments