From 81a656930aeb2b2977ae986fb03feb81260791c6 Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Thu, 29 Jan 2026 19:30:48 -0300 Subject: [PATCH] perf: increase Office365 calendarView page size to 999 to minimize pagination (#27407) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- packages/app-store/office365calendar/lib/CalendarService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/app-store/office365calendar/lib/CalendarService.ts b/packages/app-store/office365calendar/lib/CalendarService.ts index 47cf42a885..38db840316 100644 --- a/packages/app-store/office365calendar/lib/CalendarService.ts +++ b/packages/app-store/office365calendar/lib/CalendarService.ts @@ -369,7 +369,9 @@ class Office365CalendarService implements Calendar { dateFromParsed.toISOString() )}&endDateTime=${encodeURIComponent(dateToParsed.toISOString())}`; - const calendarSelectParams = "$select=showAs,start,end"; + // Request maximum page size (999) to minimize pagination rounds + // Microsoft Graph allows up to 999 items per page for calendarView + const calendarSelectParams = "$select=showAs,start,end&$top=999"; try { const selectedCalendarIds = selectedCalendars.reduce((calendarIds, calendar) => {