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

Refactor azure managed identity #35367

Merged
merged 17 commits into from
Nov 2, 2023

Conversation

Lee-W
Copy link
Member

@Lee-W Lee-W commented Nov 2, 2023

Follow up PR for #35320 (comment)

  • add decorator add_managed_identity_connection_widgets for removing duplicate widget definition
  • remove unnecessary place holder for managed identity columns as they provide no additional information
  • extract _get_default_azure_credential method
  • merge TestAzureDataExplorerHook::test_conn_* into one test method
  • extract frequent used module name as a variable in azure test cases
  • add test cases or enhance existing test cases for managed_identity and default azure credential

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@Lee-W Lee-W force-pushed the refactor-azure-manged-identity branch from 2153719 to e6b299b Compare November 2, 2023 11:34
@Lee-W Lee-W marked this pull request as ready for review November 2, 2023 15:23
@Lee-W Lee-W requested a review from potiuk November 2, 2023 15:24
Lee-W added 17 commits November 2, 2023 23:26
get_connection_form_widgets > get_ui_field_behaviour > __init__ > _get_field > connection property > get_conn > other methods
… add_managed_identity_fields utility function"

This reverts commit 7517be7aa5437d07bef2129353fa9719f2dcd52b.
…nection_widgets for removing duplicate widget definition
…naged identity columns|as they provide no additional information
…_cred for both managed_identity and default azure credential
…o verify that managed identity argument will be passed
…that managed identity argument will be passed
…ure_identity_credential_adapter for both managed_identity and default azure credential
…get_conn for both managed_identity and default azure credential
…ty arguments are passed in data factory and synapse hooks
@Lee-W Lee-W force-pushed the refactor-azure-manged-identity branch from 3c5218c to c3b673e Compare November 2, 2023 15:26
@Lee-W Lee-W changed the title Refactor azure manged identity Refactor azure managed identity Nov 2, 2023
@potiuk
Copy link
Member

potiuk commented Nov 2, 2023

Really nice! Thanks for being responsive @Lee-W !

romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Nov 10, 2023
@Lee-W Lee-W deleted the refactor-azure-manged-identity branch June 5, 2024 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants