Ah, index should handle delete, update root when version changed

This commit is contained in:
shamoon
2026-02-12 11:35:04 -08:00
parent e5d7abc8f9
commit 825b241362
4 changed files with 80 additions and 4 deletions

View File

@@ -722,6 +722,9 @@ def add_to_index(sender, document, **kwargs) -> None:
from documents import index
index.add_or_update_document(document)
if document.root_document_id is not None and document.root_document is not None:
# keep in sync when a new version is consumed.
index.add_or_update_document(document.root_document)
def run_workflows_added(