Skip to content

Conversation

@Khrol
Copy link
Contributor

@Khrol Khrol commented Sep 22, 2023

It's convenient not to define a connection name if there is only one global or default connection.
This is what is usually done in other hooks like HttpHook.

Related discussion: #33557 (comment)


^ 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.

It's convenient not to define connection name if there is only one global or default connection.
This is what is usually done in other hooks like `HttpHook`
@Taragolis
Copy link
Contributor

Nice!

I guess you you also need to do the same things in the operators, transfers and notifiers which use SlackHook, to make it consistent.

And remove/change this section in to the doc: https://airflow.apache.org/docs/apache-airflow-providers-slack/stable/connections/slack.html#default-connection-ids

@Khrol Khrol marked this pull request as ready for review September 22, 2023 19:46
@Khrol Khrol requested a review from eladkal as a code owner September 22, 2023 19:46
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