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

Clean up remaining getattr connection DbApiHook #40665

Merged

Conversation

dabla
Copy link
Contributor

@dabla dabla commented Jul 9, 2024

This pull request also applies the cleanup done in the DbApiHook throughout all depending hooks regarding the duplicated calls using the getattr on the conn_name_attr. This was already done within the DbApiHook itself in the fix for PR 40615. The only drawback of this change is that all providers then need to update the min required version of the common.sql provider to be at the latest version.


^ 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.

@potiuk
Copy link
Member

potiuk commented Jul 9, 2024

The pre-commit needs to be run as suggested in the error message :)

@dabla dabla changed the title Clean up remainin getattr connection DbApiHook Clean up remaining getattr connection DbApiHook Jul 11, 2024
@dabla
Copy link
Contributor Author

dabla commented Jul 16, 2024

I get follow error stating that I need to regenerate the provider constraints, but when I run the follow command in breeze nothing is changed:

breeze static-checks --type update-providers-dependencies --all-files

Also my branch is up-to-date with gitbuh.

@potiuk
Copy link
Member

potiuk commented Jul 16, 2024

Can you rebase it please @dabla ? I believe a conflicting change was merged soon after you pushed the PR and that's the root cause (currentlly you cannot even rebase it with the UI as it have conflicting changes (on dependencies update).

@potiuk
Copy link
Member

potiuk commented Jul 16, 2024

image

@potiuk potiuk merged commit bef82d6 into apache:main Jul 19, 2024
108 checks passed
@dabla dabla deleted the feature/clean-up-remaing-getattr-connection-db-hook branch July 19, 2024 12:24
@ephraimbuddy ephraimbuddy added this to the Airflow 2.10.0 milestone Jul 23, 2024
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Jul 26, 2024
---------

Co-authored-by: David Blain <david.blain@infrabel.be>
Co-authored-by: David Blain <david.blain@b-holding.be>
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.

4 participants