databricks-cli/libs
shreyas-goenka 715a4dfb21
Path escape filepaths in the URL (#250)
Before we were using url query escaping to escape the file path. This is
wrong since the file path is a part of the URL path rather than URL
query. These encoding schemes are similar but do not have identical
encodings which was why we got these weird edge cases

Fixed, and added nightly test for assert for this

```
2023/03/15 16:07:50 [INFO] Action: PUT: .gitignore, a b/bar.py, c+d/uno.py, foo.py
2023/03/15 16:07:51 [INFO] Uploaded foo.py
2023/03/15 16:07:51 [INFO] Uploaded a b/bar.py
2023/03/15 16:07:51 [INFO] Uploaded .gitignore
2023/03/15 16:07:51 [INFO] Uploaded c+d/uno.py
2023/03/15 16:07:51 [INFO] Initial Sync Complete
```

```
[VSCODE] bricks cli path: /Users/shreyas.goenka/.vscode/extensions/databricks.databricks-0.3.4-darwin-arm64/bin/bricks
[VSCODE] sync command args: sync,.,/Repos/shreyas.goenka@databricks.com/sync-fail.ide,--watch,--output,json
--------------------------------------------------------
Starting synchronization (4 files)
Uploaded .gitignore
Uploaded foo.py
Uploaded c+d/uno.py
Uploaded a b/bar.py
Completed synchronization
```
2023-03-15 17:25:57 +01:00
..
auth Initialize BRICKS_CLI_PATH and increase default OAuth timeout (#237) 2023-03-08 16:14:24 +01:00
filer Escape URL in filer (#236) 2023-03-08 14:27:05 +01:00
fileset Don't sync symlink folders (#205) 2023-02-15 17:02:54 +01:00
flags Add optional JSON output for sync command (#230) 2023-03-08 10:27:19 +01:00
git Locate and use global excludes file (#191) 2023-02-02 12:25:53 +01:00
notebook Detect Jupyter notebook files (#219) 2023-02-21 13:49:01 +01:00
sync Path escape filepaths in the URL (#250) 2023-03-15 17:25:57 +01:00
testfile Refactor and cover edge cases in sync integration tests (#160) 2023-01-10 13:16:30 +01:00