mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-09 13:47:14 +00:00
942fb45c16
Rename a knowledge document via a dedicated mutation that rewrites only the question in cmetadata — no re-embedding, no embedder required — mirroring the flows renameFlow pattern instead of round-tripping the full document through updateKnowledgeDocument. Backend: - renameKnowledgeDocument(id, question) mutation + resolver (admin/user split; ownership enforced at GetUserDocument, like the update pair) - metadata-only query UpdateKnowledgeDocumentMetadata (no migration) - unit + edge tests: metadata-only, missing-doc error, non-owner rejection Frontend: - renameKnowledge provider method; wire list and detail inline-rename to it - drop the content "Preview" column and request the list with withContent:false so it no longer pulls full document bodies Verified end to end against a local Docker backend (rename works; content and embedding preserved) and against the remote backend (graceful failure where the mutation is not yet deployed). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>