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

BREAKING CHANGE: replace Airflow config by conx extras in SMTP provider #46219

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

hussein-awala
Copy link
Member

This PR introduces some breaking changes to SMTP provider:

The argument from_email is now an optional kwarg in SmtpNotifier, and the argument to became the first positional argument.

Configuring the SmtpNotifier and SmtpHook 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:

  • the connection extra field ssl_context instead of the configuration smtp_provider.ssl_context or email.ssl_context in the SMTP hook.
  • the connection extra field from_email instead of the configuration smtp.smtp_mail_from in SmtpNotifier.
  • the connection extra field subject_template instead of the configuration smtp.templated_email_subject_path in SmtpNotifier.
  • the connection extra field html_content_template instead of the configuration smtp.templated_html_content_path in SmtpNotifier.

Copy link
Contributor

@eladkal eladkal left a 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)

@eladkal
Copy link
Contributor

eladkal commented Feb 5, 2025

@hussein-awala can you rebase and resolve conflicts?
I'd like to include this in the next provider wave

@hussein-awala hussein-awala force-pushed the smtp_provider_configless branch from 9bf0bbe to 18d5a24 Compare February 5, 2025 18:44
@hussein-awala
Copy link
Member Author

@hussein-awala can you rebase and resolve conflicts? I'd like to include this in the next provider wave

it's ready, I'll merge once the tests are green

@potiuk potiuk force-pushed the smtp_provider_configless branch from e3ba5a4 to de74223 Compare February 6, 2025 13:12
@eladkal
Copy link
Contributor

eladkal commented Feb 6, 2025

Merging. Failures ade about Amazon DMS not related to this PR

@eladkal eladkal merged commit ee8d665 into apache:main Feb 6, 2025
81 of 88 checks passed
insomnes pushed a commit to insomnes/airflow that referenced this pull request Feb 6, 2025
…pache#46219)

* BREAKING CHANGE: replace Airflow config by conx extras in SMTP provider

* fix static checks
insomnes pushed a commit to insomnes/airflow that referenced this pull request Feb 6, 2025
…pache#46219)

* BREAKING CHANGE: replace Airflow config by conx extras in SMTP provider

* fix static checks
niklasr22 pushed a commit to niklasr22/airflow that referenced this pull request Feb 8, 2025
…pache#46219)

* BREAKING CHANGE: replace Airflow config by conx extras in SMTP provider

* fix static checks
ambika-garg pushed a commit to ambika-garg/airflow that referenced this pull request Feb 17, 2025
…pache#46219)

* BREAKING CHANGE: replace Airflow config by conx extras in SMTP provider

* fix static checks
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.

3 participants