WeKnora/internal/datasource/connector/confluence
jacentsao 01f0700b35
feat(datasource): add Confluence sync (#3287)
* feat(datasource): add Confluence sync

* fix(confluence): resume full sync and list Server pages without CQL

CQL search silently truncates large spaces and can delete pages that
dropped out of the index. Full-sync checkpoints now keep a deletion
baseline so Asynq retries continue instead of restarting.

* fix(confluence): satisfy package lint for pre-push against main

* fix(confluence): parse Server page lists and keep version expand

The default Server/DC edition unmarshaled /content/page as a nested
envelope, so sync imported zero pages. Pagination next links also drop
expand=version,space, which made later pages versionless and hid edits.

* fix(confluence): classify errors and fail closed on empty listings

Raw Confluence error bodies were copied into sync-log UI, and pagination
next links could leave the configured context path via `..`. Empty
listings against a non-empty baseline now abort instead of deleting.

---------

Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-09-16 14:38:16 +08:00
..
client.go feat(datasource): add Confluence sync (#3287) 2026-09-16 14:38:16 +08:00
client_behavior_test.go feat(datasource): add Confluence sync (#3287) 2026-09-16 14:38:16 +08:00
client_pages_test.go feat(datasource): add Confluence sync (#3287) 2026-09-16 14:38:16 +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 feat(datasource): add Confluence sync (#3287) 2026-09-16 14:38:16 +08:00
connector_stream_test.go feat(datasource): add Confluence sync (#3287) 2026-09-16 14:38:16 +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