Skip to content

Commit 410366a

Browse files
committed
connector-outlook-calendar: event-processing parity with google
Port four event-processing improvements from google-calendar: - Batched saveLinks(): collapse per-event saveLink RPCs into one per page via a linksBySource Map. Heavy recurring meetings with many exception instances now write as a single link with N occurrences instead of N+1 separate saves. - Pending-occurrence buffering: cross-page exception instances are buffered under pending_occ:<master>:<isoOccurrence> keys and drained end-of-batch into masters present in the batch. seen_master:<canonical> tracking distinguishes legitimate cross-batch leftovers from orphans whose master was deleted upstream; orphans are dropped at full-pass cleanup. - Two-pass quick + full initial sync: quick pass with timeMin=now front-loads upcoming meetings; full pass walks the 2-year backfill range. Both share one sync lock; phase carried in SyncState so the quick->full transition survives pagination. - Hash-keyed description notes: key as description-<sha256-8> so edits produce new notes (prior versions preserved as history) instead of overwriting in place. firstSeenAt-stamped created prevents unrelated edits (lastModifiedDateTime bump from e.g. attendee change) from dragging the description note forward in the activity feed.
1 parent 2a69cc7 commit 410366a

2 files changed

Lines changed: 365 additions & 45 deletions

File tree

‎connectors/outlook-calendar/src/graph-api.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ export type SyncState = {
122122
min?: Date;
123123
max?: Date;
124124
sequence?: number;
125+
/**
126+
* Two-pass initial sync phase. `"quick"` walks `timeMin = now` to
127+
* front-load upcoming meetings; `"full"` walks the 2-year historical
128+
* backfill afterwards. Both phases share one sync lock; the
129+
* quick→full transition swaps state without releasing. Absent for
130+
* incremental syncs.
131+
*/
132+
phase?: "quick" | "full";
125133
};
126134

127135
/**

0 commit comments

Comments
 (0)