WeKnora/internal/datasource/connector/yuque
LuckVd 0d3a053eb6
fix(yuque): don't acknowledge failed detail fetches in the incremental cursor (#3702)
A partial sync recorded each doc's new content_updated_at before fetching
its detail. When a detail request failed after client retries, the cursor
still held the new version, so every later incremental sync treated the
doc as unchanged and never re-fetched it (mixed success/failure batches
persist the cursor; only all-failed batches are aborted).

Rewind the cursor entry to the previously synced version (existing docs)
or drop it (new docs) on detail failure so recovery re-syncs the doc.
Deletion detection is unaffected: currentDocs is set at listing time.

Fixes #3690

Co-authored-by: LuckVd <LuckVd@users.noreply.github.com>
2026-10-08 01:21:23 +08:00
..
client.go feat(datasource/yuque): preserve TOC folder hierarchy for synced documents (#3476) 2026-09-25 22:33:48 +08:00
client_test.go test: address PR review follow-ups for OAuth and logger cleanup 2026-07-01 17:31:42 +08:00
connector.go fix(yuque): don't acknowledge failed detail fetches in the incremental cursor (#3702) 2026-10-08 01:21:23 +08:00
connector_test.go fix(yuque): don't acknowledge failed detail fetches in the incremental cursor (#3702) 2026-10-08 01:21:23 +08:00
toc_test.go feat(datasource/yuque): preserve TOC folder hierarchy for synced documents (#3476) 2026-09-25 22:33:48 +08:00
types.go feat(datasource/yuque): preserve TOC folder hierarchy for synced documents (#3476) 2026-09-25 22:33:48 +08:00
types_test.go refactor(datasource): share connector filename sanitization 2026-09-17 16:18:52 +08:00