oncall-engine/engine/apps/base
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 Telegram ratelimit on live setting change (#2100) 2023-06-06 15:18:12 +00:00
tests Map country code to different Twilio resources (#1976) 2023-05-25 21:56:44 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
admin.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
messaging.py Fix of templates api behaviour for public and private api (#1408) 2023-03-01 16:32:15 +08:00
tasks.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
utils.py Fix Telegram ratelimit on live setting change (#2100) 2023-06-06 15:18:12 +00:00