WeKnora/internal/datasource/connector/gitlab
ordinary being 7925f774d1
fix(datasource/gitlab): emptied files no longer leave their old body searchable (#4008)
A blob that a commit emptied is still a blob, and ingestion reads an item with
neither content nor URL as nothing to sync: applyFetchedItem counts it as
skipped and the sync reports success. The body indexed from an earlier commit
stays fully searchable, and no later sync revisits it — a full sync still sees
the path in the tree, and an incremental sync only walks the diffs of commits
newer than the recorded head, which the emptying commit already moved past.

Emit the file's path as the content in that case so ingestion replaces the stale
body, matching what the Notion (b9be7d0d), Confluence and IMA (b71b31c8)
connectors already do. The check is on length alone: a blob holding only
whitespace still carries content the repository has.
2026-10-12 13:06:19 +08:00
..
client.go fix(gitlab): 分页循环补重复页防护与跳数上限 (#3841) 2026-10-08 01:21:37 +08:00
client_test.go fix(gitlab): 仓库文件下载补体积上限,超限报错而不是无界读入 (#3887) 2026-09-30 14:33:15 +08:00
compare_snapshot_test.go fix(gitlab): 按提交快照比较增量同步变更 2026-09-29 00:50:05 +08:00
connector.go fix(datasource/gitlab): emptied files no longer leave their old body searchable (#4008) 2026-10-12 13:06:19 +08:00
connector_recursion_test.go fix(gitlab): 按提交快照比较增量同步变更 2026-09-29 00:50:05 +08:00
empty_file_test.go fix(datasource/gitlab): emptied files no longer leave their old body searchable (#4008) 2026-10-12 13:06:19 +08:00
pagination_guard_test.go fix(gitlab): 分页循环补重复页防护与跳数上限 (#3841) 2026-10-08 01:21:37 +08:00
projects_test.go fix(gitlab): 补齐项目资源列表分页 2026-09-24 07:52:32 +08:00
types.go feat(datasource): 支持 GitLab 数据源文档同步 (#2656) 2026-08-12 16:09:55 +08:00
types_test.go fix(datasource/gitlab): 修复项目路径编码与连接器单例缓存问题 (#2673) 2026-08-12 16:22:02 +08:00