oncall-engine/engine/apps/telegram
Vadim Stepanov 3d7c044193
Fix Telegram ratelimit on live setting change (#2100)
# What this PR does

Fixes https://github.com/grafana/oncall/issues/1103, inspired by
https://github.com/grafana/oncall/pull/1934.

Makes sure that:
1. `LiveSettings.validate_settings` is only called once per update
request and not called for any individual LiveSetting instance save.
2. `telegram.Bot.set_webhook` is only called once per request when
changing `TELEGRAM_WEBHOOK_HOST`.


## Which issue(s) this PR fixes

https://github.com/grafana/oncall/issues/1103

## 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-06-06 15:18:12 +00:00
..
migrations Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
models Fix insight_logs exceptions (#1757) 2023-04-17 07:16:18 +00:00
renderers update web UI, Slack, and Telegram to allow silencing an acknowledged alert group (#1831) 2023-04-27 14:52:35 +00:00
tests update web UI, Slack, and Telegram to allow silencing an acknowledged alert group (#1831) 2023-04-27 14:52:35 +00:00
updates Shorten telegram callback data (#959) 2022-12-07 23:54:29 +08:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert_group_representative.py Allow Telegram DMs without channel connection (#142) 2022-06-28 09:11:19 +01:00
apps.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
client.py Fix Telegram ratelimit on live setting change (#2100) 2023-06-06 15:18:12 +00:00
decorators.py Validate Slack and Telegram host env variables (#307) 2022-08-02 12:57:12 +03:00
signals.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
tasks.py remove send_link_to_channel_message_or_fallback_to_full_incident 2023-01-06 11:34:11 +00:00
urls.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
utils.py Introduce org uuid (#947) 2022-12-06 22:42:58 +08:00
views.py Fix SQLite permission issue (#1984) 2023-05-22 19:16:31 +00:00