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

Slack: use default_conn_name by default #34548

Merged
merged 3 commits into from
Sep 22, 2023
Merged

Slack: use default_conn_name by default #34548

merged 3 commits into from
Sep 22, 2023

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
@Taragolis Taragolis merged commit faa32f2 into apache:main Sep 22, 2023
43 checks passed
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