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

[Fix] Fix DatabricksConfig.copy when authenticated with OAuth #723

Merged
merged 6 commits into from
Aug 27, 2024

Conversation

parthban-db
Copy link
Contributor

Changes

DatabricksCliTokenSource().token() itself can't be copied. So, Deep Copy can't be performed for Config.
Added the wrapper function which can be copied. So, Deep copy can be performed.

Tests

  • make test run locally
  • make fmt applied
  • relevant integration tests applied

Copy link

github-actions bot commented Aug 8, 2024

This PR breaks backwards compatibility for databrickslabs/ucx downstream. See build logs for more details.

Running from downstreams #374

@parthban-db parthban-db changed the title Wrapper function for DatabricksCliTokenSource().token() [Fix] Wrapper function for DatabricksCliTokenSource().token() Aug 8, 2024
Copy link
Contributor

@nfx nfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confirmed it works locally. hardened integration test via #736

@parthban-db parthban-db enabled auto-merge August 27, 2024 14:37
@mgyucht mgyucht changed the title [Fix] Wrapper function for DatabricksCliTokenSource().token() [Fix] Fix DatabricksConfig.copy when authenticated with OAuth Aug 27, 2024
@parthban-db parthban-db added this pull request to the merge queue Aug 27, 2024
Merged via the queue into main with commit 5893d4d Aug 27, 2024
15 checks passed
@parthban-db parthban-db deleted the parthban-db/token-source-copy branch August 27, 2024 15:25
mgyucht added a commit that referenced this pull request Aug 28, 2024
### Bug Fixes

 * Fix `DatabricksConfig.copy` when authenticated with OAuth ([#723](#723)).

### Internal Changes

 * Fix get_workspace_client test to match Go SDK behavior ([#738](#738)).
 * Verify that `WorkspaceClient` created from `AccountClient` does actually work through integration tests ([#736](#736)).
github-merge-queue bot pushed a commit that referenced this pull request Aug 28, 2024
### Bug Fixes

* Fix `DatabricksConfig.copy` when authenticated with OAuth
([#723](#723)).


### Internal Changes

* Fix get_workspace_client test to match Go SDK behavior
([#738](#738)).
* Verify that `WorkspaceClient` created from `AccountClient` does
actually work through integration tests
([#736](#736)).
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.

3 participants