oncall-engine/engine/apps/schedules/tests
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
..
calendars Make emails case-insensitive for ICal schedules (#1297) 2023-02-06 12:11:13 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
conftest.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
factories.py Initial web schedule model and serializers. Add override shift type. 2022-07-05 12:41:55 -03:00
test_amixr_users_in_ical.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_custom_on_call_shift.py RRULE until values must be specified in UTC tz (#1661) 2023-03-30 13:53:39 +02:00
test_ical_proxy.py Add multiple ical all-day event for testing 2022-11-03 14:36:42 -03:00
test_ical_utils.py Use X-WR-TIMEZONE as calendar tz when available, fallback to UTC (#2091) 2023-06-02 17:28:04 +00:00
test_on_call_schedule.py Handle date values coming from ical in final schedule caching (#2025) 2023-05-25 18:17:09 +00:00
test_quality_score.py Improve schedule quality feature (#1602) 2023-03-27 11:03:16 +00:00
test_tasks_drop_cached_ical.py Refresh final schedule after cached icals are dropped (#2004) 2023-05-25 12:01:52 +00:00
test_tasks_refresh_ical_files.py Matiasb/fix task refresh ical when empty value (#1401) 2023-02-24 21:16:09 +00:00