Uh oh!
There was an error while loading. Please reload this page.
[WIP] Migrate core EmailOperator to SMTP provider - #30531
Conversation
895f99d to
2f93d11CompareThis pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
| # for credentials, we use the connection if it exists, otherwise we use the config | ||
| if connection.login is None or connection.password is None: | ||
| warnings.warn( |
There was a problem hiding this comment.
This warning assumes incorrectly that it has to fallback to cfg settings to find a username or password for smtp. Not all smtp servers require authentication to send mail.
It can not be assumed that if a connection has no username or password that the connection config is wrong and thus falling back to legacy config
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
eladkal
commented
Aug 16, 2024
@hussein-awala i think now that main branch is Airflow 3 this PR should be easier |
eladkal
commented
Jan 24, 2025
@hussein-awala will you have time to complete this one? |
hussein-awala
commented
Jan 25, 2025
I will try to complete it by tomorrow. |
hussein-awala
commented
Jan 25, 2025
@eladkal I think there is no need to migrate it, we can delete the resources we want to deprecate and clean the code. I created this draft: #46041. For version 2.11, and since the provider operator and SMTP Notifer have been introduced for quite some time, we don't need to create a complicated backport, IMHO it will be enough to inform/warn users about the upcoming deprecation. WDYT? |
eladkal
commented
Jan 25, 2025
I agree. The goal is to remove email integration from core completely |
There was a problem hiding this comment.
Do we need to keep it?
We migrated almost all core operators to standard provider.
Should we just remove this file?
aaron-y-chen
commented
Jul 20, 2025
Hi @hussein-awala, do you think we should continue with this PR, perhaps by reopening your draft #46041? |
closes: #30530
In this PR, we migrate core
EmailOperatorto SMTP provider, and we deprecate the core one.