WeKnora/internal/application/repository
wizardchen 76a8092483 refactor(task_queue): enhance claim handling and test coverage
- Renamed TestTaskPendingOps_ClaimBatch_NewSiblingRowNotDoubleClaimed to TestTaskPendingOps_ClaimBatch_LateSiblingBlockedByFreshClaim for clarity on behavior.
- Added new test TestTaskPendingOps_ClaimBatch_LateSiblingClaimableAfterStale to verify claim behavior when a holder crashes.
- Updated ClaimBatch logic to ensure that fresh claims block late siblings entirely, maintaining serialization of same-document operations.
- Improved comments in task_queue.go to clarify the handling of concurrent claims and the implications of the claimed_at field.
- Added crash safety mechanism in ProcessWikiIngest to release claims on abnormal exits, ensuring timely re-claims of pending operations.
2026-07-09 17:41:07 +08:00
..
memory/neo4j
…
retriever test: fix stale Doris SQL-shape and flaky OSS bucket assertions 2026-06-29 17:44:56 +08:00
agent_share.go Refine scoped API key capabilities 2026-07-07 12:00:13 +08:00
audit_log.go
…
chunk.go fix(server): case-insensitive doc keyword search + not-found classification 2026-07-06 22:53:01 +08:00
chunk_sqlite_test.go
…
custom_agent.go fix(model): block deletion when model is referenced by KB or agent 2026-06-23 20:36:16 +08:00
datasource_repo.go fix(datasource): fail sync when all fetched items fail 2026-06-04 17:39:55 +08:00
datasource_repo_test.go fix(datasource): fail sync when all fetched items fail 2026-06-04 17:39:55 +08:00
embed_channel.go feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
kbshare.go
…
knowledge.go fix(server): case-insensitive doc keyword search + not-found classification 2026-07-06 22:53:01 +08:00
knowledge_finalize_test.go fix: mark knowledge delete failures after retry exhaustion 2026-06-16 16:47:46 +08:00
knowledge_source_schema_test.go fix(schema): expand knowledge source length 2026-06-05 15:12:25 +08:00
knowledge_span_repo.go feat: implement CancelOpenSpansByName method and related tests 2026-05-28 20:16:02 +08:00
knowledge_span_repo_test.go feat: implement CancelOpenSpansByName method and related tests 2026-05-28 20:16:02 +08:00
knowledge_tag.go fix(knowledge): harden multi-tag data integrity and UX follow-ups 2026-06-26 10:52:52 +08:00
knowledge_tag_test.go fix(knowledge): harden multi-tag data integrity and UX follow-ups 2026-06-26 10:52:52 +08:00
knowledgebase.go fix(model): block deletion when model is referenced by KB or agent 2026-06-23 20:36:16 +08:00
knowledgebase_sqlite_test.go
…
mcp_oauth.go fix: harden API principal config after review 2026-06-30 20:01:05 +08:00
mcp_oauth_test.go feat: scope API MCP OAuth by principal 2026-06-30 20:01:05 +08:00
mcp_service.go
…
mcp_tool_approval_repository.go
…
message.go
…
model.go
…
model_usage.go fix(model): block deletion when model is referenced by KB or agent 2026-06-23 20:36:16 +08:00
model_usage_test.go fix(model): block deletion when model is referenced by KB or agent 2026-06-23 20:36:16 +08:00
organization.go
…
session.go feat(embed): scope OAuth and sessions per visitor principal 2026-06-30 20:01:05 +08:00
session_test.go feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
system_setting.go
…
tag.go fix(knowledge): harden multi-tag data integrity and UX follow-ups 2026-06-26 10:52:52 +08:00
task_queue.go refactor(task_queue): enhance claim handling and test coverage 2026-07-09 17:41:07 +08:00
task_queue_test.go refactor(task_queue): enhance claim handling and test coverage 2026-07-09 17:41:07 +08:00
tenant.go feat: add scoped tenant api keys 2026-07-07 12:00:13 +08:00
tenant_api_key.go refactor(api-keys): remove API key reset endpoint and update documentation 2026-07-07 12:00:13 +08:00
tenant_disabled_shared_agent.go
…
tenant_invitation.go
…
tenant_member.go
…
tenant_test.go feat: add scoped tenant api keys 2026-07-07 12:00:13 +08:00
user.go
…
user_resource_favorite.go
…
vectorstore.go
…
web_search_provider.go
…
wiki_log_entry.go
…
wiki_log_entry_test.go
…
wiki_page.go feat(wiki): implement folder management features in wiki API 2026-06-16 23:51:29 +08:00
wiki_page_test.go feat(wiki): implement folder management features in wiki API 2026-06-16 23:51:29 +08:00