Skip to content

Add incremental CalDAV sync for Deck boards - #8838

Open
arrys wants to merge 1 commit into
nextcloud:mainfrom
arrys:feat/caldav-board-sync
Open

arrys wants to merge 1 commit into
nextcloud:mainfrom
arrys:feat/caldav-board-sync

Conversation

@arrys

@arrys arrys commented Dec 1, 2026 •

Copy link
Copy Markdown

Add incremental CalDAV sync for Deck boards

Deck boards are exposed as CalDAV task calendars. Clients currently have to fetch the full collection on each poll because those calendars do not implement WebDAV collection sync.

Changes

  • Implement RFC 6578 sync-collection for Deck calendars. Return new and changed VTODOs and report removed resources as 404 entries. Moving a card between boards removes it from the source calendar and adds it to the destination.
  • Persist board- and principal-scoped snapshots of resource names and ETags. Check read permission before serving a token or changes. Expired and unknown tokens trigger the standard invalid-token response so clients can restart with a full sync.
  • Use a continuation token when a client limits the number of results. Derive ETags from the serialized VTODO so edits made within one second are detected.
  • Expire snapshots after seven days and remove expired entries during Deck's existing hourly cleanup. Producing a delta compares the board's current VTODOs with the previous snapshot, so server work still scales with board size.

Testing

  • Eight PHPUnit tests with 48 assertions cover initial and unchanged polls, added, edited, deleted and moved cards, permission changes, token isolation, stale tokens and pagination.

  • Upgraded Deck and ran real CalDAV requests in a disposable Nextcloud 35.0.3 instance with SQLite. Verified card creation, editing, cross-board moves, deletion, page continuation, board sharing, rejection of another principal's token, and access revocation. The disposable instance used a relaxed app manifest version check. Upstream CI still needs to run on Nextcloud 36 and the supported database engines.

  • PHP syntax checks and git diff --check passed.

  • Sign-off message is added to all commits

Signed-off-by: Arkadiusz Ryś <Arkadiusz.Michal.Rys@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant