databricks-cli/libs
shreyas-goenka a7a109a5d8
Remove base path checks during sync (#576)
## Changes
Earlier we removed recursive deletion from sync. This makes it safe
enough for us to not restrict sync to just the namespace of the user.

This PR removes that base path validation. 

Note: If the sync destination is under `/Repos` we still only create
missing directories required if the path is under my namespace ie
matches `/Repos/@me/`

## Tests
Manually

Before:
```
shreyas.goenka@THW32HFW6T hello-bundle % cli bundle deploy
Starting upload of bundle files
Error: path must be nested under /Users/shreyas.goenka@databricks.com or /Repos/shreyas.goenka@databricks.com
```

After:
```
shreyas.goenka@THW32HFW6T hello-bundle % cli bundle deploy
Starting upload of bundle files
Uploaded bundle files at /Shared/common-test/hello-bundle/files!

Starting resource deployment
Resource deployment completed!
```
2023-07-14 11:43:20 +02:00
..
auth Added prompts for Databricks profile for auth login command (#502) 2023-06-21 12:58:28 +02:00
cmdio Fix secrets put-secret command (#545) 2023-07-05 17:30:54 +02:00
databrickscfg Correctly use --profile flag passed for all bundle commands (#571) 2023-07-12 14:09:25 +02:00
errs Added ability for deferred mutator execution (#380) 2023-05-16 18:01:50 +02:00
filer Make local files default for fs commands (#506) 2023-06-23 16:07:09 +02:00
fileset Don't sync symlink folders (#205) 2023-02-15 17:02:54 +01:00
flags Add mode default as a valid set value for progress-format flag (#472) 2023-06-14 13:26:56 +02:00
git Remove \r from new line print statments (#509) 2023-06-22 13:47:52 +02:00
locker Fix locker unlock for destroy (#492) 2023-06-19 15:57:25 +02:00
log Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
notebook Error out if notebook file does not exist locally (#261) 2023-03-21 18:13:16 +01:00
sync Remove base path checks during sync (#576) 2023-07-14 11:43:20 +02:00
terraform Add bundle destroy command (#300) 2023-04-06 12:54:58 +02:00
testfile Refactor and cover edge cases in sync integration tests (#160) 2023-01-10 13:16:30 +01:00