From 06f23ddc38a3f7feb8acae6a16550b5f2b9b3b1f Mon Sep 17 00:00:00 2001 From: buua436 Date: Thu, 16 Jul 2026 10:57:42 +0800 Subject: [PATCH] fix: avoid resetting documents on non-parser updates (#16962) --- api/apps/restful_apis/document_api.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/api/apps/restful_apis/document_api.py b/api/apps/restful_apis/document_api.py index c5aae42899..9aef226b39 100644 --- a/api/apps/restful_apis/document_api.py +++ b/api/apps/restful_apis/document_api.py @@ -287,11 +287,6 @@ async def update_document(tenant_id, dataset_id, document_id): elif parser_config_template_group_changed: if error := reset_document_for_reparse(doc, tenant_id, pipeline_id=""): return error - else: - # Direct-parser updates do not carry a pipeline_id. Clear any stale - # pipeline selection and its generated document-store data. - if error := reset_document_for_reparse(doc, tenant_id, pipeline_id=""): - return error if "enabled" in req: # already checked in UpdateDocumentReq - it's int if present # "enabled" flag provided, the update method will check if it's changed and then update if so