mirror of
https://github.com/ansible/awx.git
synced 2026-02-14 17:50:02 -03:30
updates the implementation of the slack backend for notifications
Use the slack_sdk instead of the deprecated slackclient. Because according to the official documentation: > The slackclient PyPI project is in maintenance mode now and slack-sdk project is the successor. With this commit one UPGRADE BLOCKER from requirements/requirements.in is removed. Als the license for slack_sdk is updated and unit tests for slack notifications backend are added. Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
This commit is contained in:
@@ -108,12 +108,6 @@ Upgrading to 4.0.0 causes error because imports changed.
|
||||
ImportError: cannot import name 'KeyVaultClient'
|
||||
```
|
||||
|
||||
### slackclient
|
||||
|
||||
Imports as used in `awx/main/notifications/slack_backend.py` changed
|
||||
in version 2.0. This plugin code will need to change and be re-tested
|
||||
as the upgrade takes place.
|
||||
|
||||
### django-jsonfield
|
||||
|
||||
Instead of calling a `loads()` operation, the returned value is casted into
|
||||
|
||||
@@ -50,7 +50,7 @@ social-auth-core==3.3.1 # see UPGRADE BLOCKERs
|
||||
social-auth-app-django==3.1.0 # see UPGRADE BLOCKERs
|
||||
redis
|
||||
requests
|
||||
slackclient==1.1.2 # see UPGRADE BLOCKERs
|
||||
slack-sdk
|
||||
tacacs_plus==1.0 # UPGRADE BLOCKER: auth does not work with later versions
|
||||
twilio
|
||||
twisted[tls]>=20.3.0 # CVE-2020-10108, CVE-2020-10109
|
||||
|
||||
@@ -320,7 +320,6 @@ requests==2.23.0
|
||||
# python-dsv-sdk
|
||||
# python-tss-sdk
|
||||
# requests-oauthlib
|
||||
# slackclient
|
||||
# social-auth-core
|
||||
# twilio
|
||||
requests-oauthlib==1.3.0
|
||||
@@ -358,13 +357,12 @@ six==1.14.0
|
||||
# pyrad
|
||||
# pyrsistent
|
||||
# python-dateutil
|
||||
# slackclient
|
||||
# social-auth-app-django
|
||||
# social-auth-core
|
||||
# tacacs-plus
|
||||
# twilio
|
||||
# websocket-client
|
||||
slackclient==1.1.2
|
||||
slack-sdk==3.11.2
|
||||
# via -r /awx_devel/requirements/requirements.in
|
||||
smmap==3.0.1
|
||||
# via gitdb
|
||||
@@ -399,9 +397,7 @@ uwsgi==2.0.18
|
||||
uwsgitop==0.11
|
||||
# via -r /awx_devel/requirements/requirements.in
|
||||
websocket-client==0.57.0
|
||||
# via
|
||||
# kubernetes
|
||||
# slackclient
|
||||
# via kubernetes
|
||||
wheel==0.36.2
|
||||
# via -r /awx_devel/requirements/requirements.in
|
||||
xmlsec==1.3.3
|
||||
|
||||
Reference in New Issue
Block a user