-
Notifications
You must be signed in to change notification settings - Fork 87
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
Installation checks if either configs ("enableProjectTypeInWorkspace", "enableWorkspaceFilesystem") are 'false' and makes them 'true' for valid installation #831
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #831 +/- ##
==========================================
+ Coverage 87.21% 87.23% +0.02%
==========================================
Files 41 41
Lines 5200 5211 +11
Branches 936 938 +2
==========================================
+ Hits 4535 4546 +11
Misses 458 458
Partials 207 207 ☔ View full report in Codecov by Sentry. |
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.
Use sdk, not api
sdk is fixed - databricks/databricks-sdk-py#525 |
79f8899
to
787a6ad
Compare
The sdk changes are not released yet, so make changes to the toml file and pulled in latest commit. Can only merge after the next release. There are other changes in sdk that I had to make to update the codebase(e.g. [https://github.com/databricks/databricks-sdk-py/pull/522]). Should I added them as a part of this PR too @nfx ? |
013508d
to
b4a48d7
Compare
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.
Could you implement it in the blueprint library instead? Eg manually create a new dummy workspace (for isolation), disable settings, then in Installation.load (or deeper), catch the "feature disabled" exception, call this code to set the status, and retry there.
This would be the most impactful implementation, that is the easiest to test in isolation
Work now done in the blueprint repo: |
Changes
Installation fails if either of the configs ("enableProjectTypeInWorkspace", "enableWorkspaceFilesystem") are 'false'. Checks the two configs via API and sets them to "true" if they are "false".
Linked issues
Resolves #576
Functionality
databricks labs ucx ...
...
...
Tests
Using SDK for getting and setting conf values blocked by databricks/databricks-sdk-py#500