oncall-engine/engine/apps/alerts/tasks
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
..
__init__.py Remove deprecated alerting integration tasks (#2944) 2023-09-01 13:11:02 +00:00
acknowledge_reminder.py Fix Slack acknowledgment reminders (#2769) 2023-08-11 09:41:56 +00:00
alert_group_web_title_cache.py remove references to AlertGroup.is_archived and AlertGroup.unarchived_objects (#2524) 2023-07-18 11:48:34 +00:00
call_ack_url.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
check_escalation_finished.py Clean up check escalation finished task (#2943) 2023-09-01 10:48:47 +00:00
compare_escalations.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
custom_button_result.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
custom_webhook_result.py Add escalation chain support for new webhooks (#1654) 2023-04-05 12:03:55 +00:00
delete_alert_group.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
distribute_alert.py Fix "Continue escalation if >X alerts per Y minutes" escalation step (#2636) 2023-07-26 13:33:24 +01:00
escalate_alert_group.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
invite_user_to_join_incident.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
maintenance.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
notify_all.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
notify_group.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
notify_ical_schedule_shift.py update slack_sdk dependency to latest version (#2947) 2023-09-05 11:31:59 +02:00
notify_user.py Refactor AlertGroup.slack_message (#2957) 2023-09-04 18:03:18 +00:00
resolve_alert_group_by_source_if_needed.py Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
resolve_by_last_step.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
send_alert_group_signal.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
send_update_log_report_signal.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
send_update_resolution_note_signal.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
sync_grafana_alerting_contact_points.py Remove deprecated alerting integration tasks (#2944) 2023-09-01 13:11:02 +00:00
task_logger.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
unsilence.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
wipe.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00