WeKnora/internal
wizardchen b9b81a6c3c fix(knowledge): stop async delete from leaving visible/zombie rows (#2192)
Two backend fixes for the v0.7.0 regression where a deleted document keeps
showing in the list ('delete success' toast) and a follow-up reparse then
reports the file is missing:

1. List filtering: applyKnowledgeListFilter now hides rows in the transient
   'deleting' state from the default document list. The async delete pipeline
   marks a row 'deleting' before tearing down its resources, so without this
   the entry lingers as a normal doc until it is physically gone. Rows whose
   delete task exhausts retries are flipped to 'failed' by the dead-letter
   callback and stay visible so the failure remains actionable; an explicit
   parse_status=deleting filter can still surface in-flight rows.

2. Delete ordering: DeleteKnowledge / DeleteKnowledgeList now delete the DB
   row FIRST and defer physical file (+ extracted image) cleanup until after
   the row is gone. Previously file removal ran concurrently with the
   index/chunk/graph cleanup; when one of those failed the row was kept but
   the file could already be deleted, producing a 'file missing but row
   present' zombie that could neither be reparsed nor cleanly re-deleted.
   Orphaning a file after the row is gone is the tolerable failure mode.

Adds a repository regression test covering the default/explicit deleting
visibility rules.
2026-07-22 17:30:14 +08:00
..
agent feat(agent): enhance suggested questions API with tag scopes 2026-07-17 10:19:43 +08:00
application fix(knowledge): stop async delete from leaving visible/zombie rows (#2192) 2026-07-22 17:30:14 +08:00
assets feat(assets): add ASR test audio file and embed it in the application 2026-04-02 21:27:27 +08:00
common fix(redis): harden TLS tests and surface TLS config at startup 2026-07-06 23:04:52 +08:00
config refactor(terminology): rename user-facing tenant labels to workspace 2026-07-14 16:14:43 +08:00
container feat(im): add Yunzhijia integration 2026-07-21 12:24:33 +08:00
database feat(system-info): surface DB migration errors with troubleshooting links 2026-05-14 16:34:50 +08:00
datasource fix(feishu): resilient large-wiki sync — retry, streaming resume, failure visibility 2026-07-21 16:14:22 +08:00
errors refactor(terminology): rename user-facing tenant labels to workspace 2026-07-14 16:14:43 +08:00
event feat(mcp): prompt and resume OAuth authorization mid-conversation 2026-06-29 23:22:28 +08:00
handler fix: normalize API key expiry timestamps to UTC (#2137) 2026-07-22 17:09:55 +08:00
im feat(im): default markdown format for yunzhijia replies 2026-07-22 11:01:49 +08:00
infrastructure feat(web-search): add Zhipu AI web search provider support 2026-07-20 12:15:35 +08:00
llmreference feat(agent): add per-agent citation output toggle 2026-07-17 10:19:43 +08:00
llmresource fix(tests): update resource alias syntax from 'res:' to 'res://' in tests and registry 2026-07-15 17:02:43 +08:00
logger feat(tracing): migrate langfuse client to OTLP/OTel wire protocol 2026-07-17 16:30:45 +08:00
mcp feat(im): include per-service MCP OAuth URLs in IM auth notices 2026-07-01 17:53:54 +08:00
middleware feat(api-keys): add platform-scoped API keys for control-plane automation 2026-07-21 17:21:35 +08:00
models fix(rerank): stop sending vLLM truncate_prompt_tokens by default 2026-07-21 12:12:56 +08:00
ratelimit feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
router feat(api-keys): add platform-scoped API keys for control-plane automation 2026-07-21 17:21:35 +08:00
runtime fix(redis): harden TLS tests and surface TLS config at startup 2026-07-06 23:04:52 +08:00
sandbox perf(sandbox): compile command-substitution regexps once 2026-06-16 19:51:32 +08:00
searchutil fix(chat): use Markdown for LLM image context and normalize legacy XML 2026-07-15 18:10:31 +08:00
storageallowlist fix(storage): align default provider fallback with STORAGE_ALLOW_LIST 2026-07-15 11:05:00 +08:00
stream feat(redis): support TLS for Redis connections (#1930) 2026-07-06 23:02:02 +08:00
tracing/langfuse fix(tracing): merge Langfuse finish metadata and export auto root spans 2026-07-17 16:58:40 +08:00
types feat(knowledge): implement AminusB function for multiset comparison of knowledge bases 2026-07-21 17:44:51 +08:00
utils feat(resource): add stable resource registry with LLM-context alias compaction 2026-07-15 17:02:43 +08:00