From abbb5a83813c84e9ac2a3646ef8a26d2aa2a44e8 Mon Sep 17 00:00:00 2001 From: Matias Bordese Date: Mon, 9 Jan 2023 14:10:23 -0300 Subject: [PATCH] Update schedules query not to defer ical fields used for on-call check (#1114) Do not defer cached ical fields which are later needed for calculating on-call users listed in the schedules list page. --- engine/apps/api/views/schedule.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/engine/apps/api/views/schedule.py b/engine/apps/api/views/schedule.py index 4db5d3e302..fa61c5ddc4 100644 --- a/engine/apps/api/views/schedule.py +++ b/engine/apps/api/views/schedule.py @@ -135,9 +135,7 @@ def get_queryset(self): organization = self.request.auth.organization queryset = OnCallSchedule.objects.filter(organization=organization, team=self.request.user.current_team).defer( # avoid requesting large text fields which are not used when listing schedules - "cached_ical_file_primary", "prev_ical_file_primary", - "cached_ical_file_overrides", "prev_ical_file_overrides", ) if not is_short_request: