Skip to content

databricks experimental open: emit ?w= URL query parameter#5369

Open
Divyansh-db wants to merge 1 commit into
mainfrom
emit-workspace-id-url-param
Open

databricks experimental open: emit ?w= URL query parameter#5369
Divyansh-db wants to merge 1 commit into
mainfrom
emit-workspace-id-url-param

Conversation

@Divyansh-db
Copy link
Copy Markdown

Summary

The Databricks UI is migrating from ?o=<workspace-id> to ?w=<workspace-id> as the SPOG URL query parameter, matching the recent workspace addressing header rename. This PR switches BuildResourceURL in libs/workspaceurls to write ?w= when appending the workspace identifier.

This affects URLs printed by databricks experimental open. The legacy ?o= URL spelling remains a valid input anywhere the CLI parses host URLs; only the emitted form changes.

Scope

  • libs/workspaceurls/urls.goworkspaceBaseURL now adds w=<id>, docstring on BuildResourceURL updated.
  • libs/workspaceurls/urls_test.go — expected URLs flipped.
  • cmd/experimental/workspace_open_test.go — expected URLs flipped.
  • acceptance/experimental/open/output.txt — regenerated via ./task test-update.

bundle/config/mutator/initialize_urls.go also adds a workspace identifier query parameter, but it does so before calling ResourceURL with an already-built baseURL, so this change does not affect bundle output. The bundle path can flip in a separate change.

Test plan

  • go test ./libs/workspaceurls/... ./cmd/experimental/... — green
  • go test ./acceptance -run 'TestAccept/experimental/open' — green (golden file regenerated)
  • ./task lint-q — 0 issues; ./task fmt — no changes

The Databricks UI is migrating from ?o=<workspace-id> to ?w=<workspace-id>
as the SPOG URL query parameter, matching the recent workspace addressing
header rename. Switch BuildResourceURL in libs/workspaceurls to write ?w=
when appending the workspace identifier. This affects URLs printed by
databricks experimental open.

The legacy ?o= URL spelling remains a valid input wherever the CLI parses
host URLs; only the emitted form changes.

bundle/config/mutator/initialize_urls.go also adds a workspace identifier
query parameter, but it does so before calling ResourceURL with an
already-built baseURL, so this change does not affect bundle output.
@github-actions
Copy link
Copy Markdown
Contributor

Waiting for approval

Based on git history, these people are best suited to review:

  • @simonfaltum -- recent work in libs/workspaceurls/, cmd/experimental/, acceptance/experimental/open/
  • @janniklasrose -- recent work in libs/workspaceurls/, cmd/experimental/, acceptance/experimental/open/

Eligible reviewers: @andrewnester, @anton-107, @denik, @pietern, @renaudhartert-db, @shreyas-goenka

Suggestions based on git history. See OWNERS for ownership rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant