-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
BREAKING CHANGE: replace Airflow config by conx extras in SMTP provider #46219
Conversation
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.
Just needs to remove unrelated changes for mongo (as were already fixed in main)
@hussein-awala can you rebase and resolve conflicts? |
9bf0bbe
to
18d5a24
Compare
it's ready, I'll merge once the tests are green |
e3ba5a4
to
de74223
Compare
Merging. Failures ade about Amazon DMS not related to this PR |
…pache#46219) * BREAKING CHANGE: replace Airflow config by conx extras in SMTP provider * fix static checks
…pache#46219) * BREAKING CHANGE: replace Airflow config by conx extras in SMTP provider * fix static checks
…pache#46219) * BREAKING CHANGE: replace Airflow config by conx extras in SMTP provider * fix static checks
…pache#46219) * BREAKING CHANGE: replace Airflow config by conx extras in SMTP provider * fix static checks
This PR introduces some breaking changes to SMTP provider:
The argument
from_email
is now an optional kwarg inSmtpNotifier
, and the argumentto
became the first positional argument.Configuring the
SmtpNotifier
andSmtpHook
default values via Airflow SMTP configurations is not supported anymore. You can instead use the SMTP connection configuration to set the default values, where you can use:ssl_context
instead of the configurationsmtp_provider.ssl_context
oremail.ssl_context
in the SMTP hook.from_email
instead of the configurationsmtp.smtp_mail_from
inSmtpNotifier
.subject_template
instead of the configurationsmtp.templated_email_subject_path
inSmtpNotifier
.html_content_template
instead of the configurationsmtp.templated_html_content_path
inSmtpNotifier
.