oncall-engine/engine/apps/api/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
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
conftest.py update slack_sdk dependency to latest version (#2947) 2023-09-05 11:31:59 +02:00
test_alert_group.py Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
test_alert_receive_channel.py Improve getting/updating contact points for Grafana Alerting integration (#2742) 2023-08-18 12:12:29 +02:00
test_alert_receive_channel_template.py Fix 500 on templates when slack or tg integration is disabled (#2064) 2023-05-31 08:22:58 +00:00
test_auth.py Reworked slack login pipeline errors (#2526) 2023-07-18 13:31:11 +00:00
test_channel_filter.py Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
test_custom_button.py use CustomURLValidator in custom_button (#1398) 2023-03-23 12:21:17 +00:00
test_escalation_chain.py Allow changing team for escalation chains (#1658) 2023-03-30 10:43:00 +01:00
test_escalation_policy.py Fix build escalation snapshot (#2954) 2023-09-04 11:10:28 +00:00
test_features.py remove two unused feature flags (#2734) 2023-08-02 14:07:47 -04:00
test_integration_heartbeat.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_live_settings.py Telegram long polling (#2250) 2023-08-24 09:12:24 +02:00
test_oncall_shift.py Add schedule shift type validation on create/preview (#2789) 2023-08-15 14:24:11 +00:00
test_organization.py Make field rbac_enabled readonly for organization endpoint (#2782) 2023-08-11 13:37:44 +00:00
test_paging.py Direct paging: page if acked or silenced, show warning when resolved (#2639) 2023-07-26 13:25:26 +01:00
test_permissions.py shift swap requests model + CRUD endpoints (#2597) 2023-07-21 19:35:19 +00:00
test_postmortem_messages.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_preview_template_options.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_public_api_tokens.py only grant admins read/write access to public api keys (#952) 2022-12-06 13:02:53 +01:00
test_route_regex_debugger.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_schedule_export.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_schedules.py Add endpoint for getting schedules events for current user (#2928) 2023-09-05 07:22:08 +00:00
test_set_general_log_channel.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_shift_swaps.py Add optional param to return shift swaps detailed user information (#2923) 2023-08-31 14:46:45 +00:00
test_slack_channels.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_slack_team_settings.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_team.py Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
test_telegram_channel.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_user.py add rbac_permissions to current-user response + rbac_enabled to current-org response (#2611) 2023-07-21 11:38:58 -04:00
test_user_groups.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_user_notification_policy.py Fix duplicate orders for user notification policies (#2278) 2023-06-21 11:13:56 +00:00
test_user_schedule_export.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_webhooks.py Webhooks Public API (#2790) 2023-08-22 14:05:52 -06:00