WeKnora/internal/datasource/connector/confluence
wizardchen 503f1abfb4 fix(confluence): confirm unlisted pages before deleting after a cut-short listing
On a Server/DC instance with the #3596 behaviour every listing ends
early, so skipping deletion reconciliation for such runs meant pages
deleted in Confluence were never removed from the knowledge base.

When a listing is cut short, look up each previously synced page it did
not return with GET /rest/api/content/{id}?expand=space and delete it
only when Confluence confirms it is gone from the space: a 404, a
non-current status, or a different space. Pages that are still there,
that fail to load (including 403), or that exceed the 200-probe budget
per run stay tracked and are checked again next time.
2026-09-24 14:18:55 +08:00
..
client.go fix(confluence): confirm unlisted pages before deleting after a cut-short listing 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): confirm unlisted pages before deleting after a cut-short listing 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): confirm unlisted pages before deleting after a cut-short listing 2026-09-24 14:18:55 +08:00
connector_stream_test.go fix(confluence): confirm unlisted pages before deleting after a cut-short listing 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