oncall-engine/engine/apps/alerts
Matias Bordese 0ab5312bf1
Use X-WR-TIMEZONE as calendar tz when available, fallback to UTC (#2091)
When checking current shifts to trigger slack notifications, a stable
value for timezone should be used (to avoid triggering multiple
duplicated notifications; using the first `VTIMEZONE` value available
may change on refresh, besides being potentially incorrect).

Also, `VTIMEZONE` shouldn't be used as the calendar timezone, it just
describes a [timezone
definition](https://icalendar.org/iCalendar-RFC-5545/3-6-5-time-zone-component.html)
which can later be [used when specifying a start/end
date/datetime](https://icalendar.org/iCalendar-RFC-5545/3-2-19-time-zone-identifier.html)
("The parameter MUST be specified on properties with a DATE-TIME value
if the DATE-TIME is not either a UTC or a "floating" time.").

OTOH, Google uses the non-standard[ `X-WR-TIMEZONE`
](https://github.com/collective/icalendar/issues/343)field as fallback
TZ for date-times without a `TZID`. Try to use this when available,
otherwise fallback to `UTC`.
2023-06-02 17:28:04 +00:00
..
escalation_snapshot add several new database columns + emit two new Django signals (#1522) 2023-04-14 09:15:57 +02:00
grafana_alerting_sync_manager Update find contact point name, receiver could be missing key (#2046) 2023-05-29 18:52:24 +00:00
incident_appearance Fix orphaned messages in Slack (#2023) 2023-06-01 10:21:30 +00:00
incident_log_builder modify check_escalation_finished_task task (#1266) 2023-03-17 10:14:08 +00:00
migrations OnCall prometheus metrics exporter (#1605) 2023-05-25 18:26:13 +00:00
models Fix demo alert for inbound email (#2081) 2023-06-02 09:44:32 +00:00
tasks Trigger slack shift notifications on current shift change (#2080) 2023-06-01 16:27:14 +00:00
terraform_renderer World, meet OnCall! 2022-06-03 08:09:47 -06:00
tests Use X-WR-TIMEZONE as calendar tz when available, fallback to UTC (#2091) 2023-06-02 17:28:04 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
admin.py Alert group search (#488) 2022-09-06 11:30:12 +01:00
constants.py OnCall prometheus metrics exporter (#1605) 2023-05-25 18:26:13 +00:00
integration_options_mixin.py Change integrations page wording and add more guidance (#1986) 2023-05-31 11:26:36 +00:00
paging.py Keep track of direct paging schedule/importance in logs (#1269) 2023-02-02 09:21:31 -03:00
representative.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
signals.py Add users_to_be_notified to new webhooks payload (#1798) 2023-04-20 16:13:48 +00:00
utils.py Fix outgoing webhook to resolve IP from parsed hostname 2022-09-22 14:35:37 -03:00