oncall-engine/engine/apps/api
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
..
permissions Add "Notifications Receiver" RBAC role (#1853) 2023-05-02 12:19:34 +00:00
serializers Webhooks 2 hide secrets (#2104) 2023-06-06 07:59:12 +00:00
tests Fix Telegram ratelimit on live setting change (#2100) 2023-06-06 15:18:12 +00:00
throttlers Test mobile push (#1933) 2023-05-18 15:52:42 +08:00
views Fix Telegram ratelimit on live setting change (#2100) 2023-06-06 15:18:12 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
response_renderers.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
urls.py Add initial webhooks internal plugin API (#1524) 2023-03-10 17:00:06 +00:00