oncall-engine/engine/apps/slack/tests
Joey Orlando 26946f0d43
fix: improve Slack rate limiting logic when updating alert groups (#5287)
# What this PR does

https://www.loom.com/share/1ac33822301444748133ffe72638ddc4

The two asks in the [original GH
issue](https://github.com/grafana/oncall-private/issues/2947) were:

> 1. Make the error message clearer. We can identify if it's delivering
or updating and being rate-limited. This is possible because Slack sets
limits per API method. Also, this limit is a per-slack channel while we
are posting messages & applying ratelimit per on-call integration, which
confuses customers.
> 2. Debounce update alert group message in Slack

Both of these have been addressed in this PR

## Which issue(s) this PR closes

Closes https://github.com/grafana/oncall-private/issues/2947

## 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] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-12-02 14:40:30 -05:00
..
scenario_steps fix: improve Slack rate limiting logic when updating alert groups (#5287) 2024-12-02 14:40:30 -05:00
tasks fix: improve Slack rate limiting logic when updating alert groups (#5287) 2024-12-02 14:40:30 -05:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
conftest.py Fix handling Slack rate limits (#2991) 2023-09-07 11:25:29 +00:00
factories.py refactor SlackMessage.channel_id (CHAR field) to SlackMessage.channel (foreign key relationship) (#5292) 2024-11-26 11:03:38 +00:00
test_installation.py fix: patch slack ID reference issue (#5314) 2024-12-02 10:51:13 -05:00
test_interactive_api_endpoint.py update URLs constructed by the backend to support IRM plugin (#5137) 2024-10-09 08:55:10 -04:00
test_parse_slack_usernames.py Schedules alpha fixes (#541) 2022-09-21 11:19:59 +01:00
test_populate_slack_channels.py Improve Slack error handling (#3000) 2023-09-12 09:49:16 +00:00
test_reset_slack.py chore: add more slack related tests (#5227) 2024-11-04 15:49:22 -05:00
test_slack_client.py Update Slack user group for a schedule - handle paid_team_only Slack API error (#4793) 2024-08-09 14:51:01 +00:00
test_slack_formatter.py Fix alert group rendering (#3424) 2023-11-24 15:39:37 +00:00
test_slack_message.py fix: improve Slack rate limiting logic when updating alert groups (#5287) 2024-12-02 14:40:30 -05:00
test_slack_renderer.py Remove the deprecated "Format Alert" button from the Slack renderer (#5141) 2024-10-14 06:53:17 +00:00
test_slash_command.py Make root command configurable (#4863) 2024-08-21 06:54:47 +00:00
test_user_group.py Update Slack user group for a schedule - handle paid_team_only Slack API error (#4793) 2024-08-09 14:51:01 +00:00
test_utils.py Fix post message to slack channel (#3701) 2024-01-17 13:05:36 +00:00