apache-airflow-providers-slack

Changelog

8.9.1

Bug Fixes

  • adding support for snippet type in slack api (#43305)

  • passing the filetype for SlackAPIFileOperator (#43069)

8.9.0

Note

This release of provider is only available for Airflow 2.8+ as explained in the Apache Airflow providers support policy.

Misc

  • Bump minimum Airflow version in providers to Airflow 2.8.0 (#41396)

8.8.0

Features

  • feat(slack): add unfurl options to slack notifier (#40694)

Misc

  • docs(SlackNotifier): add newly added unfurl args to the docstring (#40709)

8.7.1

Misc

  • Faster 'airflow_version' imports (#39552)

  • Simplify 'airflow_version' imports (#39497)

8.7.0

Note

This release of provider is only available for Airflow 2.7+ as explained in the Apache Airflow providers support policy.

Note

Due to future discontinue of files.upload Slack API method the default value of SlackAPIFileOperator.method_version and SqlToSlackApiFileOperator.slack_method_version changed from v1 to v2

If you previously use v1 you should check that your application has appropriate scopes:

  • files:write - for write files.

  • files:read - for read files (not required if you use Slack SDK >= 3.23.0).

  • channels:read - get list of public channels, for convert Channel Name to Channel ID.

  • groups:read - get list of private channels, for convert Channel Name to Channel ID

  • mpim:read - additional permission for API method conversations.list

  • im:read - additional permission for API method conversations.list

If you use SlackHook.send_file please consider switch to SlackHook.send_file_v2 or SlackHook.send_file_v1_to_v2 methods.

Misc

  • Bump minimum Airflow version in providers to Airflow 2.7.0 (#39240)

  • Use 'upload_files_v2' Slack SDK method by default in Slack Operators (#39340)

8.6.2

Bug Fixes

  • Fix set deprecated slack operators arguments in 'MappedOperator' (#38345)

  • Update SqlToSlackApiFileOperator with new param to check empty output (#38079)

8.6.1

Misc

  • Remove the remaining references to use the token bypassing the Connection in the Slack provider. (#37112)

  • feat: Switch all class, functions, methods deprecations to decorators (#36876)

8.6.0

Features

  • Optionally use 'client.files_upload_v2' in Slack Provider (#36757)

Bug Fixes

  • Fix stacklevel in warnings.warn into the providers (#36831)

8.5.1

Bug Fixes

  • Slack: Remove parameter 'token' in SlackAPIPostOperator's docstring (#36121)

8.5.0

Note

This release of provider is only available for Airflow 2.6+ as explained in the Apache Airflow providers support policy.

Misc

  • Bump minimum Airflow version in providers to Airflow 2.6.0 (#36017)

8.4.0

Features

  • Reorganize SQL to Slack Operators (#35215)

8.3.0

Features

  • Pass additional arguments from Slack's Operators/Notifiers to Hooks (#35039)

8.2.0

Note

This release of provider is only available for Airflow 2.5+ as explained in the Apache Airflow providers support policy.

Misc

  • Bump min airflow version of providers (#34728)

  • Slack: use default_conn_name by default (#34548)

8.1.0

Features

  • Add Slack Incoming Webhook Notifier (#33966)

Misc

  • Refactor: Replace lambdas with comprehensions in providers (#33771)

  • Improve modules import in Airflow providers by some of them into a type-checking block (#33754)

8.0.0

Breaking changes

Warning

SlackHook and SlackWebhookHook constructor expected keyword-only arguments.

Removed deprecated parameter token from the SlackHook and dependent operators. Required create Slack API Connection and provide connection id to slack_conn_id operators / hook, and the behavior should stay the same.

Parsing Slack Incoming Webhook Token from the Connection hostname is removed, password should be filled.

Removed deprecated parameter webhook_token from the SlackWebhookHook and dependent operators Required create Slack Incoming Webhook Connection and provide connection id to slack_webhook_conn_id operators / hook, and the behavior should stay the same.

Removed deprecated method execute from the SlackWebhookHook. Use send, send_text or send_dict instead.

Removed deprecated parameters attachments, blocks, channel, username, username, icon_emoji from the SlackWebhookHook. Provide them directly to SlackWebhookHook.send method, and the behavior should stay the same.

Removed deprecated parameter message from the SlackWebhookHook. Provide text directly to SlackWebhookHook.send method, and the behavior should stay the same.

Removed deprecated parameter link_names from the SlackWebhookHook and dependent operators. This parameter has no affect in the past, you should not provide it. If you want to mention user see: Slack Documentation.

Removed deprecated parameters endpoint, method, data, headers, response_check, response_filter, extra_options, log_response, auth_type, tcp_keep_alive, tcp_keep_alive_idle, tcp_keep_alive_idle, tcp_keep_alive_count, tcp_keep_alive_interval from the SlackWebhookOperator. Those parameters has no affect in the past, you should not provide it.

  • Remove deprecated parts from Slack provider (#33557)

  • Replace deprecated slack notification in provider.yaml with new one (#33643)

Misc

  • Avoid importing pandas and numpy in runtime and module level (#33483)

  • Consolidate import and usage of pandas (#33480)

7.3.2

Misc

  • Add more accurate typing for DbApiHook.run method (#31846)

7.3.1

Note

This release dropped support for Python 3.7

Misc

  • Remove Python 3.7 support (#30963)

7.3.0

Note

This release of provider is only available for Airflow 2.4+ as explained in the Apache Airflow providers support policy.

Misc

  • Bump minimum Airflow version in providers (#30917)

  • Add Documentation for notification feature extension (#29191)

  • Standardize Slack Notifier (#31244)

7.2.0

Features

  • Add general-purpose "notifier" concept to DAGs (#28569)

7.1.1

Misc

  • [misc] Replace XOR '^' conditions by 'exactly_one' helper in providers (#27858)

7.1.0

Features

  • Implements SqlToSlackApiFileOperator (#26374)

Bug Fixes

  • Bump common.sql provider to 1.3.1 (#27888)

7.0.0

Note

This release of provider is only available for Airflow 2.3+ as explained in the Apache Airflow providers support policy.

Breaking changes

  • In SlackHook and SlackWebhookHook, if both extra__<conn type>__foo and foo existed in connection extra dict, the prefixed version would be used; now, the non-prefixed version will be preferred. You’ll see a warning if there is such a collision.

Misc

  • Move min airflow version to 2.3.0 for all providers (#27196)

  • Allow and prefer non-prefixed extra fields for slack hooks (#27070)

6.0.0

Breaking changes

  • The hook class SlackWebhookHook does not inherit from HttpHook anymore. In practice the only impact on user-defined classes based on SlackWebhookHook and you use attributes from HttpHook.

  • Drop support deprecated webhook_token parameter in slack-incoming-webhook extra.

  • Refactor 'SlackWebhookOperator': Get rid of mandatory http-provider dependency (#26648)

  • Refactor SlackWebhookHook in order to use 'slack_sdk' instead of HttpHook methods (#26452)

Features

  • Move send_file method into SlackHook (#26118)

  • Refactor Slack API Hook and add Connection (#25852)

  • Remove unsafe imports in Slack API Connection (#26459)

  • Add common-sql lower bound for common-sql (#25789)

  • Fix Slack Connections created in the UI (#26845)

5.1.0

Features

  • Move all SQL classes to common-sql provider (#24836)

  • Adding generic 'SqlToSlackOperator' (#24663)

5.0.0

Breaking changes

Note

This release of provider is only available for Airflow 2.2+ as explained in the Apache Airflow providers support policy.

4.2.3

Bug Fixes

  • Fix mistakenly added install_requires for all providers (#22382)

4.2.2

Misc

  • Add Trove classifiers in PyPI (Framework :: Apache Airflow :: Provider)

4.2.1

Misc

  • Support for Python 3.10

4.2.0

Features

  • Return slack api call response in slack_hook (#21107)

Bug Fixes

  • Fix template_fields type to have MyPy friendly Sequence type (#20571)

4.1.0

Features

  • Restore filename to template_fields (#18466)

Bug Fixes

4.0.1

Misc

  • Optimise connection importing for Airflow 2.2.0

Bug Fixes

  • Fixed SlackAPIFileOperator to upload file and file content. (#17400)

  • Fixed SlackAPIFileOperator to upload file and file content (#17247)

4.0.0

Breaking changes

  • Auto-apply apply_default decorator (#15667)

Warning

Due to apply_default decorator removal, this version of the provider requires Airflow 2.1.0+. If your Airflow version is < 2.1.0, and you want to install this provider version, first upgrade Airflow to at least version 2.1.0. Otherwise your Airflow package version will be upgraded automatically and you will have to manually run airflow upgrade db to complete the migration.

Bug Fixes

  • Fix hooks extended from http hook (#16109)

3.0.0

Breaking changes

  • Don't allow SlackHook.call method accept *args (#14289)

2.0.0

Breaking changes

We updated the support for slack_sdk from >=2.0.0,<3.0.0 to >=3.0.0,<4.0.0. In most cases, this doesn’t mean any breaking changes to the DAG files, but if you used this library directly then you have to make the changes. For details, see the Migration Guide for Python Slack SDK.

  • Upgrade slack_sdk to v3 (#13745)

1.0.0

Initial version of the provider.

Was this entry helpful?