Skip to content

Slack: use default_conn_name by default - #34548

Merged
Taragolis merged 3 commits into
apache:mainfrom
Khrol:main
Sep 22, 2023
Merged

Slack: use default_conn_name by default#34548
Taragolis merged 3 commits into
apache:mainfrom
Khrol:main

Conversation

@Khrol

Copy link
Copy Markdown
Contributor

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

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
Copy Markdown
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 ownerSeptember 22, 2023 19:46
Sign up for freeto 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

@Khrol@Taragolis@hussein-awala