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.
This commit is contained in:
Matias Bordese 2023-01-09 14:10:23 -03:00 committed by GitHub
parent 87fad5eec1
commit abbb5a8381
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,9 +135,7 @@ class ScheduleView(
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: