databricks-cli/internal
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
..
build Include build information and add version command (#194) 2023-02-03 15:38:53 +01:00
api_test.go Fix integration tests for windows (#165) 2023-01-11 13:32:02 +01:00
filer_test.go Bump databricks-sdk-go to 0.3.2 (#215) 2023-02-20 16:00:20 +01:00
helpers.go Add RequireSuccessfulRun helper (#125) 2022-12-09 15:41:04 +01:00
locker_test.go Fix integration tests for windows (#165) 2023-01-11 13:32:02 +01:00
sync_test.go Path escape filepaths in the URL (#250) 2023-03-15 17:25:57 +01:00