Repository navigation
Commit 410366a
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
125 | 133 | | |
126 | 134 | | |
127 | 135 | | |
| |||
0 commit comments