WeKnora/internal/datasource/connector/confluence
wizardchen eb888d0d3d fix(confluence): stop Server listings that link past the last page
Some Server/Data Center builds keep returning _links.next from
/rest/api/space/{key}/content/page after the last page, with empty
results (#3596). The connector followed it until the 10000-hop cap, so a
sync ran for hours, imported nothing and then failed.

Stop after three consecutive empty pages that still link onward. A
single empty page is not taken as the end, since permission filtering
can empty one window mid-listing. A listing cut short this way is
reported as incomplete: its pages are imported, pages it did not reach
stay in the cursor, and deletion reconciliation is skipped for that run
so an early stop cannot mirror-delete documents.
2026-09-24 14:18:55 +08:00
..
client.go fix(confluence): stop Server listings that link past the last page 2026-09-24 14:18:55 +08:00
client_behavior_test.go feat(datasource): add Confluence sync (#3287) 2026-09-16 14:38:16 +08:00
client_pages_test.go fix(confluence): stop Server listings that link past the last page 2026-09-24 14:18:55 +08:00
client_resolve_test.go feat(datasource): add Confluence sync (#3287) 2026-09-16 14:38:16 +08:00
client_test.go feat(datasource): add Confluence sync (#3287) 2026-09-16 14:38:16 +08:00
connector.go fix(confluence): stop Server listings that link past the last page 2026-09-24 14:18:55 +08:00
connector_stream_test.go fix(confluence): stop Server listings that link past the last page 2026-09-24 14:18:55 +08:00
types.go feat(datasource): add Confluence sync (#3287) 2026-09-16 14:38:16 +08:00
types_test.go feat(datasource): add Confluence sync (#3287) 2026-09-16 14:38:16 +08:00