Skip to content

Fixed adding /Workspace prefix for resource paths - #1866

Merged
pietern merged 3 commits into
mainfrom
fix/prefix-resource-path
Oct 30, 2024
Merged

Fixed adding /Workspace prefix for resource paths#1866
pietern merged 3 commits into
mainfrom
fix/prefix-resource-path

Conversation

@andrewnester

@andrewnesterandrewnester commented Oct 30, 2024

Copy link
Copy Markdown
Contributor

Changes

/Workspace prefix needs to be added to resource_path as well.

Fixes the issue mentioned here: #1822 (comment)

Fixes#1867

Tests

Added regression test

Comment threadbundle/config/validate/folder_permissions.go

func setPermissions(ctx context.Context, w workspace.WorkspaceInterface, path string, permissions []workspace.WorkspaceObjectAccessControlRequest) error {
// If the folder is shared, then we don't need to set permissions since it's always set for all users and it's checked in mutators before.
if libraries.IsWorkspaceSharedPath(path) {

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per discussion here #1821 (comment)

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Test Details: go/deco-tests/11598536835

@pietern
pietern enabled auto-merge October 30, 2024 17:33
@pietern
pietern added this pull request to the merge queueOct 30, 2024
Merged via the queue into main with commit ac71d2eOct 30, 2024
@pietern
pietern deleted the fix/prefix-resource-path branch October 30, 2024 17:40
andrewnester added a commit that referenced this pull request Oct 30, 2024
This patch release fixes the following error observed when deploying to /Shared root folder
"Error: Path (/Shared/.bundle/.../resources) doesn't exist"
Bundles:
* Fixed adding /Workspace prefix for resource paths ([#1866](#1866)).
github-merge-queueBot pushed a commit that referenced this pull request Oct 30, 2024
This patch release fixes the following error observed when deploying to
/Shared root folder
"Error: Path (/Shared/.bundle/.../resources) doesn't exist"
Bundles:
* Fixed adding /Workspace prefix for resource paths
([#1866](#1866)).
denik pushed a commit that referenced this pull request May 20, 2026
## Changes
`/Workspace` prefix needs to be added to `resource_path` as well.
Fixes the issue mentioned here:
#1822 (comment)Fixes#1867 ## Tests
Added regression test
denik pushed a commit that referenced this pull request May 20, 2026
This patch release fixes the following error observed when deploying to
/Shared root folder
"Error: Path (/Shared/.bundle/.../resources) doesn't exist"
Bundles:
* Fixed adding /Workspace prefix for resource paths
([#1866](#1866)).
Sign up for freeto 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.

Databricks CLI v0.232.0 databricks bundle deploy fails

3 participants

@andrewnester@eng-dev-ecosystem-bot@pietern