Keep each occurrence of a series sent without its master #36

Merged
jcoffey-dev merged 1 commits from fix/occurrences-without-master into main 2026-10-30 15:24:09 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev af0383165c Keep each occurrence of a series sent without its master
ci / test (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 4m12s
ci / announce (pull_request) Skipped
An iCalendar resource holding only RECURRENCE-ID occurrences of one UID
(someone invited to single occurrences, not the series) became one row:
import caldav stored the first and dropped the rest. Each occurrence is
now its own row. sync_id_dav names the first; the others are found by
calendar and UID among rows no other item names, so an update reuses,
adds or drops rows as the resource changes, and a vanished resource
takes them all.

On the way out, JMAP export matched events by UID alone, so several
such occurrences (from any source) all landed on one target event; it
now matches by UID and recurrenceId. export-caldav writes every row
sharing a UID in a calendar as one resource, as CalDAV holds them,
counting them per row.

tests/mock_dav_occurrences.rs covers import, change, export, a second
export and re-import on the in-memory DAV server, and fails on the old
code.
2026-10-30 08:18:35 -07:00