-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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 backwards compatibility for SMTP provider #37701
Fix backwards compatibility for SMTP provider #37701
Conversation
cc: @vchiapaikeo . FYI. I guess you moved the import as local imports to solve "compatibility checks" failing in CI - but as a learning for the future - DON't :) . The compatibility checks deliberately fail when there are imports that are importing stuff from airlfow - and we perform import checks for all the providers to see if the imports still work, local imports are a way to avoid that, but also they will stop detecting compatibility issues. Also note to self (and others) to pay closer attention to such changes :D |
The apache#36226 introduced backwards compatibility check for the smtp provider, where it relied pn airflow settings containig new settings. This PR fixes it by falling back to default settings in case the settings cannot be imported.
e134ed0
to
b318f0e
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.
LGTM
Oof, I'm sorry guys! I'll try to fix this right up! |
Related apache#36226 and apache#37701 - where we had problems with SMTP provider 1.6.0.
The #36226 introduced backwards compatibility check for the smtp provider, where it relied pn airflow settings containig new settings.
This PR fixes it by falling back to default settings in case the settings cannot be imported.
^ 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.