oncall-engine/engine/apps
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
..
alerts Add inbound email address in integration API (#2113) 2023-06-06 13:08:54 +00:00
api Fix Telegram ratelimit on live setting change (#2100) 2023-06-06 15:18:12 +00:00
api_for_grafana_incident Include alert details in Grafana Incident alert-group endpoint (#1280) 2023-02-03 13:43:21 +00:00
auth_token Improve plugin authentication (#1995) 2023-05-23 16:13:25 +00:00
base Fix Telegram ratelimit on live setting change (#2100) 2023-06-06 15:18:12 +00:00
email Change email message on_delete to not block organization delete (#2060) 2023-05-31 13:44:55 +00:00
grafana_plugin Improve plugin authentication (#1995) 2023-05-23 16:13:25 +00:00
heartbeat Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
integrations Add ratelimit for AmazonSNS (#2032) 2023-05-26 09:57:26 +00:00
metrics_exporter OnCall prometheus metrics exporter (#1605) 2023-05-25 18:26:13 +00:00
mobile_app changed notification title and subtitle; removed body (#2027) 2023-05-26 12:52:09 +00:00
oss_installation Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
phone_notifications Fix status callbacks (#2014) 2023-05-25 13:53:58 +08:00
public_api Add inbound email address in integration API (#2113) 2023-06-06 13:08:54 +00:00
schedules public API endpoint to export schedule final shifts (#2047) 2023-06-05 14:06:10 +00:00
slack Revert "Revert slack org does not exist changes breaking escalate command (#2057)" (#2096) 2023-06-06 12:53:45 +00:00
social_auth Social auth exception logging (#2041) 2023-06-02 11:20:54 +00:00
telegram Fix Telegram ratelimit on live setting change (#2100) 2023-06-06 15:18:12 +00:00
twilioapp Use same account for status callback when using TwilioSender (#2083) 2023-06-02 17:19:36 +00:00
user_management OnCall prometheus metrics exporter (#1605) 2023-05-25 18:26:13 +00:00
webhooks Webhooks 2 hide secrets (#2104) 2023-06-06 07:59:12 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00