Skip to content
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

Use already instantiated WorkspaceClient in sync command #867

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

andrewnester
Copy link
Contributor

Changes

Since we use root.MustWorkspaceClient now, we should use already initialised version of WorkspaceClient instead of instantiating a new one.

Fixes #836

@pietern
Copy link
Contributor

pietern commented Oct 13, 2023

Could you double check if we have other call-sites in the code where we don't go through root.WorkspaceClient?

@andrewnester
Copy link
Contributor Author

@pietern all the other usage of .NewWorkspaceClient are either tests or used for configuring a new client so they are accurate

@andrewnester andrewnester added this pull request to the merge queue Oct 13, 2023
Merged via the queue into main with commit ff01898 Oct 13, 2023
4 checks passed
@andrewnester andrewnester deleted the fix-profile-flag branch October 13, 2023 13:09
pietern added a commit that referenced this pull request Oct 16, 2023
Note: this release includes a fix for the issue where zero values (for example
`num_workers: 0`) were not included in the request body.

CLI:
 * Use already instantiated WorkspaceClient in sync command ([#867](#867)).

Bundles:
 * Support Unity Catalog Registered Models in bundles ([#846](#846)).
 * Fixed merging task libraries from targets ([#868](#868)).
 * Add alias for mlops-stack template URL ([#869](#869)).

API Changes:
 * Changed `databricks account billable-usage download` command to start returning output.
 * Changed `databricks account storage-credentials delete` command with new required argument order.
 * Changed `databricks account storage-credentials get` command with new required argument order.
 * Changed `databricks account storage-credentials update` command with new required argument order.
 * Added `databricks workspace-bindings get-bindings` command.
 * Added `databricks workspace-bindings update-bindings` command.
 * Removed `databricks account network-policy` command group.
 * Changed `databricks ip-access-lists list` command to return output.

OpenAPI commit 493a76554afd3afdd15dc858773d01643f80352a (2023-10-12)

Dependency updates:
 * Update Go SDK to 0.23.0 and use custom marshaller ([#772](#772)).
 * Bump Terraform provider to v1.28.0 ([#871](#871)).
 * Bump golang.org/x/net from 0.16.0 to 0.17.0 ([#863](#863)).
 * Bump github.com/hashicorp/hc-install from 0.6.0 to 0.6.1 ([#870](#870)).
@pietern pietern mentioned this pull request Oct 16, 2023
github-merge-queue bot pushed a commit that referenced this pull request Oct 16, 2023
Note: this release includes a fix for the issue where zero values (for
example
`num_workers: 0`) were not included in the request body.

CLI:
* Use already instantiated WorkspaceClient in sync command
([#867](#867)).

Bundles:
* Support Unity Catalog Registered Models in bundles
([#846](#846)).
* Fixed merging task libraries from targets
([#868](#868)).
* Add alias for mlops-stack template URL
([#869](#869)).

API Changes:
* Changed `databricks account billable-usage download` command to start
returning output.
* Changed `databricks account storage-credentials delete` command with
new required argument order.
* Changed `databricks account storage-credentials get` command with new
required argument order.
* Changed `databricks account storage-credentials update` command with
new required argument order.
 * Added `databricks workspace-bindings get-bindings` command.
 * Added `databricks workspace-bindings update-bindings` command.
 * Removed `databricks account network-policy` command group.
 * Changed `databricks ip-access-lists list` command to return output.

OpenAPI commit 493a76554afd3afdd15dc858773d01643f80352a (2023-10-12)

Dependency updates:
* Update Go SDK to 0.23.0 and use custom marshaller
([#772](#772)).
* Bump Terraform provider to v1.28.0
([#871](#871)).
* Bump golang.org/x/net from 0.16.0 to 0.17.0
([#863](#863)).
* Bump github.com/hashicorp/hc-install from 0.6.0 to 0.6.1
([#870](#870)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

profile flag seems to be ignored in databricks sync command
2 participants