oncall-engine/engine/apps/slack/tests
Yulya Artyukhina adfb496a81
Fix slack channels sync (#2571)
# What this PR does
- Fixes issue with slack channels sync periodic tasks when we get slack
rate limit exception.
- Adds check for active task id to avoid starting multiple tasks for one
slack team.

Collecting channels for slack for some teams causes rate limit
exception, which causes the task to restart and start collecting slack
channels from the beginning. This PR adds new paginated api call and
refactors the slack channel sync task to continue collect data after
rate limit from the step before it was raised using `cursor` value from
the slack response.


## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [ ] 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)

---------

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2023-07-19 07:17:21 +00:00
..
test_scenario_steps Update Slack "invite" feature to use direct paging (#2562) 2023-07-18 08:36:11 +00: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 remove SlackActionRecord model/table (#2201) 2023-06-13 10:56:06 +00:00
test_create_message_blocks.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_interactive_api_endpoint.py Update Slack "invite" feature to use direct paging (#2562) 2023-07-18 08:36:11 +00:00
test_parse_slack_usernames.py Schedules alpha fixes (#541) 2022-09-21 11:19:59 +01:00
test_populate_slack_channels.py Fix slack channels sync (#2571) 2023-07-19 07:17:21 +00:00
test_reset_slack.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_slack_renderer.py Update Slack "invite" feature to use direct paging (#2562) 2023-07-18 08:36:11 +00:00
test_user_group.py Fix test 2023-02-02 14:28:37 +00:00