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
preserve directories in recursive workspace listing #466
base: main
Are you sure you want to change the base?
preserve directories in recursive workspace listing #466
Conversation
Signed-off-by: Neil Best <60439766+neilbest-db@users.noreply.github.com>
Signed-off-by: Neil Best <60439766+neilbest-db@users.noreply.github.com>
7734cf5
to
608b644
Compare
…com/neilbest-db/databricks-sdk-py into fix/465-recursive-workspace-listing
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #466 +/- ##
=======================================
Coverage 51.57% 51.57%
=======================================
Files 38 38
Lines 22355 22354 -1
=======================================
Hits 11530 11530
+ Misses 10825 10824 -1 ☔ View full report in Codecov by Sentry. |
@@ -32,7 +32,6 @@ def list(self, | |||
for object_info in parent_list(path, notebooks_modified_after=notebooks_modified_after): | |||
if recursive and object_info.object_type == ObjectType.DIRECTORY: | |||
queue.append(object_info.path) | |||
continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this breaks established behavior, that thousands of projects depend on. Add an optional keyword argument disabled by default if you want this change
@@ -5,9 +5,17 @@ | |||
|
|||
def test_workspace_recursive_list(w, random): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
existing unit tests must be left unchanged.
Changes
Tests
make test
run locallymake fmt
applied