oncall-engine/engine/apps/schedules/tests
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
..
calendars Handle ical schedule import with duplicated event UIDs (#2760) 2023-08-07 13:11:46 +00:00
tasks update slack_sdk dependency to latest version (#2947) 2023-09-05 11:31:59 +02:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
conftest.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
factories.py shift swap requests model + CRUD endpoints (#2597) 2023-07-21 19:35:19 +00:00
test_amixr_users_in_ical.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_custom_on_call_shift.py Apply shift swap requests to schedule events (#2677) 2023-07-28 18:53:27 +00:00
test_ical_proxy.py Add multiple ical all-day event for testing 2022-11-03 14:36:42 -03:00
test_ical_utils.py Ignore ical cancelled events when calculating shifts (#2776) 2023-08-11 15:14:15 +00:00
test_notify_about_empty_shifts_in_schedule.py update slack_sdk dependency to latest version (#2947) 2023-09-05 11:31:59 +02:00
test_notify_about_gaps_in_schedule.py update slack_sdk dependency to latest version (#2947) 2023-09-05 11:31:59 +02:00
test_on_call_schedule.py Add endpoint for getting schedules events for current user (#2928) 2023-09-05 07:22:08 +00:00
test_quality_score.py Check possible split events in range when resolving schedule (#2828) 2023-08-18 13:58:31 +00:00
test_shift_swap_request.py Filter out untaken swaps from final schedule and shift notifications (#2748) 2023-08-04 17:43:54 +00:00