oncall-engine/engine/apps
Joey Orlando a9155130df
update slack_sdk dependency to latest version (#2947)
# What this PR does

- update `slackclient` dependency to latest version. The version we were
using was 5 years old 😲
- first followed the v2 migration guide
[here](https://github.com/slackapi/python-slack-sdk/wiki/Migrating-to-2.x)
followed by the v3 migration guide
[here](https://slack.dev/python-slack-sdk/v3-migration/). The main
changes were:
    - The PyPI project was renamed from `slackclient` to `slack_sdk`
- it is discouraged/harder to call `api_call` and encouraged to call the
helper methods (ex. `chat_postMessage`;
[note](https://github.com/slackapi/python-slack-sdk/wiki/Migrating-to-2.x#web-client-api-changes)
in migration guide docs)
- In 1.x, a failed api call would return the error payload to you and
have you handle the error. In 2.x, a failed api call will throw an
exception. To handle this in your code, you will have to wrap api calls
with a try except block. Since we overload `WebClient.api_call` this was
an easy change and only required a one line change
- remove `apps.slack.slack_client.slack_server.SlackClientServer` class.
The new version of `slack_sdk` handles the case that we needed to
overload for in the first place.
- merged `apps/slack/slack_client/slack_client.py` and
`apps/slack/slack_client/exceptions.py` into `apps/slack/client.py`

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2023-09-05 11:31:59 +02:00
..
alerts update slack_sdk dependency to latest version (#2947) 2023-09-05 11:31:59 +02:00
api update slack_sdk dependency to latest version (#2947) 2023-09-05 11:31:59 +02:00
api_for_grafana_incident remove references to AlertGroup.is_archived and AlertGroup.unarchived_objects (#2524) 2023-07-18 11:48:34 +00:00
auth_token Return API URL as part of status (#2791) 2023-08-22 17:17:26 +00:00
base Telegram long polling (#2250) 2023-08-24 09:12:24 +02:00
email Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
grafana_plugin Status to not access grafana headers from mobile request (#2870) 2023-08-23 19:39:02 +00:00
heartbeat Use periodic task for heartbeats (#2723) 2023-08-10 02:25:00 +00:00
integrations update slack_sdk dependency to latest version (#2947) 2023-09-05 11:31:59 +02:00
metrics_exporter Fix metrics and dashboard (#2895) 2023-08-29 13:52:24 +00:00
mobile_app Remove apps.mobile_app.tasks.notify_user_async celery task (#2942) 2023-09-01 11:54:37 +00:00
oss_installation Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
phone_notifications Re-enable a few mypy rules + fix existing errors (#2725) 2023-08-03 09:43:03 +00:00
public_api update slack_sdk dependency to latest version (#2947) 2023-09-05 11:31:59 +02:00
schedules update slack_sdk dependency to latest version (#2947) 2023-09-05 11:31:59 +02:00
slack update slack_sdk dependency to latest version (#2947) 2023-09-05 11:31:59 +02:00
social_auth apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
telegram Telegram long polling (#2250) 2023-08-24 09:12:24 +02:00
twilioapp Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
user_management Re-enable a few mypy rules + fix existing errors (#2725) 2023-08-03 09:43:03 +00:00
webhooks Webhooks Public API (#2790) 2023-08-22 14:05:52 -06:00
zvonok Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00