oncall-engine/engine/apps/base/models
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
..
__init__.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
dynamic_setting.py Remove outdated tasks & DynamicSettingsManager (#465) 2022-09-01 17:50:17 +01:00
failed_to_invoke_celery_task.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
live_setting.py Fix Telegram ratelimit on live setting change (#2100) 2023-06-06 15:18:12 +00:00
user_notification_policy.py Fix of templates api behaviour for public and private api (#1408) 2023-03-01 16:32:15 +08:00
user_notification_policy_log_record.py Refactor get_user_verbal_for_team_for_slack. (#809) 2023-03-07 10:09:37 +00:00