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
..
2026-07-18 23:41:48 +08:00
2026-07-15 17:02:43 +08:00
2026-04-22 21:17:29 +08:00
2026-06-08 21:01:04 +08:00
2026-07-17 10:19:43 +08:00
2026-07-17 10:19:43 +08:00
2026-06-25 23:33:39 +08:00
2026-06-29 18:09:44 +08:00
2026-05-18 16:49:14 +08:00
2026-07-17 10:19:43 +08:00
2026-07-13 17:09:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-07-06 22:53:01 +08:00
2026-07-17 10:19:43 +08:00
2026-07-17 10:19:43 +08:00
2026-07-17 10:19:43 +08:00
2025-08-05 15:08:07 +08:00
2026-07-21 16:14:22 +08:00
2026-07-21 16:14:22 +08:00
2026-07-21 16:14:22 +08:00
2026-07-21 16:14:22 +08:00
2026-06-12 23:10:39 +08:00
2026-07-18 23:41:48 +08:00
2026-07-18 23:41:48 +08:00
2026-07-18 23:41:48 +08:00
2026-06-12 23:10:39 +08:00
2026-06-12 23:10:39 +08:00
2026-07-02 19:15:46 +08:00
2026-07-02 19:15:46 +08:00
2026-03-25 22:08:29 +08:00
2026-07-15 14:54:39 +08:00
2026-07-17 10:19:43 +08:00
2026-05-30 17:53:47 +08:00
2026-07-14 15:38:06 +08:00
2026-07-13 12:16:19 +08:00
2026-07-15 17:02:43 +08:00
2026-05-18 17:28:58 +08:00
2026-07-22 15:27:11 +08:00
2026-07-22 15:27:11 +08:00
2026-06-29 18:09:44 +08:00
2026-07-15 14:54:39 +08:00
2026-06-12 23:08:20 +08:00
2026-07-22 17:30:14 +08:00
2026-07-14 16:14:43 +08:00
2026-06-04 15:48:04 +08:00
2026-07-14 17:55:26 +08:00
2026-07-14 17:55:26 +08:00
2026-04-02 12:04:04 +08:00
2026-03-16 18:18:23 +08:00
2026-06-05 15:00:41 +08:00
2026-05-18 17:28:58 +08:00
2026-07-10 23:51:29 +08:00
2026-07-14 11:56:29 +08:00
2026-07-15 14:54:39 +08:00
2026-05-29 17:52:01 +08:00
2026-07-14 11:56:29 +08:00
2026-05-18 17:28:58 +08:00
2026-07-13 10:38:50 +08:00
2026-07-13 10:38:50 +08:00
2026-05-06 17:09:42 +08:00
2026-05-06 11:23:32 +08:00
2026-07-13 15:51:06 +08:00
2026-07-13 15:51:06 +08:00
2026-07-02 12:27:48 +08:00
2026-07-15 14:54:39 +08:00
2026-07-15 14:54:39 +08:00
2026-06-23 17:30:38 +08:00
2026-07-15 11:05:00 +08:00
2026-05-26 20:54:58 +08:00
2026-05-20 22:25:39 +08:00
2026-05-20 22:25:39 +08:00
2026-05-06 17:17:07 +08:00
2026-04-16 23:15:02 +08:00
2026-05-18 17:28:58 +08:00
2026-06-04 15:48:04 +08:00
2026-07-17 10:19:43 +08:00
2026-07-15 14:54:39 +08:00
2026-06-22 20:19:31 +08:00
2026-06-30 20:01:05 +08:00
2026-05-10 22:57:12 +08:00
2026-07-15 19:16:53 +08:00
2026-07-17 10:19:43 +08:00
2026-07-20 19:31:02 +08:00
2025-11-28 16:10:37 +08:00
2026-07-14 15:56:02 +08:00
2026-07-14 15:56:02 +08:00
2026-07-14 16:14:43 +08:00
2026-03-02 21:21:49 +08:00
2026-03-06 21:08:12 +08:00
2026-05-18 17:28:58 +08:00
2026-07-15 17:02:43 +08:00
2026-07-22 17:09:55 +08:00
2026-06-29 18:09:44 +08:00
2026-07-17 10:19:43 +08:00
2026-07-17 11:38:35 +08:00
2026-07-18 23:41:48 +08:00
2026-06-25 23:33:39 +08:00
2026-07-07 12:00:13 +08:00
2026-07-17 10:19:43 +08:00
2026-07-17 10:19:43 +08:00
2026-07-22 14:25:55 +08:00
2026-07-22 14:25:55 +08:00
2026-02-04 20:08:49 +08:00
2026-05-10 00:01:06 +08:00
2026-05-10 00:01:06 +08:00
2026-07-15 14:54:39 +08:00
2026-07-15 17:02:43 +08:00
2026-07-13 15:51:06 +08:00
2026-07-14 16:14:43 +08:00
2026-07-10 23:51:29 +08:00
2026-07-16 17:41:27 +08:00
2026-07-16 17:41:27 +08:00
2026-07-22 17:09:55 +08:00
2026-07-22 17:09:55 +08:00
2026-05-27 19:42:01 +08:00
2026-05-27 19:42:01 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-07-15 14:54:39 +08:00
2026-07-15 14:54:39 +08:00
2026-07-13 20:11:00 +08:00
2026-07-02 17:08:17 +08:00
2026-07-02 19:15:46 +08:00
2026-07-13 18:13:51 +08:00
2026-05-18 17:28:58 +08:00
2026-07-18 23:41:48 +08:00
2026-06-04 15:26:56 +08:00
2026-05-29 16:32:27 +08:00
2026-06-04 15:26:56 +08:00
2026-07-15 14:54:39 +08:00
2026-06-04 15:26:56 +08:00
2026-07-20 12:15:35 +08:00
2026-07-20 12:15:35 +08:00
2026-04-11 18:51:16 +08:00
2026-07-14 16:14:43 +08:00
2026-07-14 16:14:43 +08:00
2026-07-17 18:05:27 +08:00
2026-04-22 21:18:32 +08:00
2026-07-13 12:16:19 +08:00
2026-04-22 21:18:32 +08:00
2026-04-22 21:18:32 +08:00
2026-05-08 21:48:52 +08:00
2026-06-16 23:51:29 +08:00
2026-06-16 23:51:29 +08:00
2026-07-17 18:05:27 +08:00
2026-07-17 18:05:27 +08:00
2026-04-22 21:18:09 +08:00
2026-04-22 21:18:09 +08:00
2026-05-10 00:01:06 +08:00
2026-05-08 21:48:52 +08:00
2026-07-13 15:59:09 +08:00
2026-07-13 15:59:09 +08:00