Scheduling infrastructure for absolutely everyone.
perf: increase Office365 calendarView page size to 999 to minimize pagination (#27407)
Keith Williams81a656930aeb
diff --git a/packages/app-store/office365calendar/lib/CalendarService.ts b/packages/app-store/office365calendar/lib/CalendarService.tsindex 47cf42a885e..38db8403164 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) => {