Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed adding /Workspace prefix for resource paths #1866

Merged
merged 3 commits into from
Oct 30, 2024

Conversation

andrewnester
Copy link
Contributor

@andrewnester andrewnester commented Oct 30, 2024

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

@@ -67,6 +68,11 @@ func giveAccessForWorkspaceRoot(ctx context.Context, b *bundle.Bundle) error {
}

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
Contributor Author

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)

@andrewnester andrewnester requested a review from pietern October 30, 2024 17:29
@eng-dev-ecosystem-bot
Copy link
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 queue Oct 30, 2024
Merged via the queue into main with commit ac71d2e Oct 30, 2024
9 checks passed
@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-queue bot 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)).
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.

Databricks CLI v0.232.0 databricks bundle deploy fails
3 participants