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

Refactor SlackWebhookOperator: Get rid of mandatory http-provider dependency #26648

Merged
merged 2 commits into from
Sep 27, 2022

Conversation

Taragolis
Copy link
Contributor

follow-up: #26452

Right now SlackWebhookOperator based on SimpleHttpOperator but do not use any of parent attributes internally except http_conn_id. Mainly because SlackWebhookOperator entirely overwrite execute method and do not propagated SimpleHttpOperator attributes in hook constructor.

Since last changes in SlackWebhookHook also do not use anything from http-provider.

So there is not reason keep apache-airflow-providers-http as a dependency to the slack provider.

@Taragolis Taragolis force-pushed the slack-remove-http-as-dependency branch from 792c75a to cf15073 Compare September 24, 2022 07:26
Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. It does not change much because Http provider is always pre-installed with Airflow, but it is indeed simpler and cleaner.

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.

2 participants