Skip to content

Commit

Permalink
Update schedules query not to defer ical fields used for on-call check (
Browse files Browse the repository at this point in the history
#1114)

Do not defer cached ical fields which are later needed for calculating
on-call users listed in the schedules list page.
  • Loading branch information
matiasb authored Jan 9, 2023
1 parent 87fad5e commit abbb5a8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions engine/apps/api/views/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit abbb5a8

Please sign in to comment.