An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 持久化属性视图 https://github.com/siyuan-note/siyuan/issues/2829
Liang Ding7b97c5d41ab7
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex 79e43c5728..df0326b2fd 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -32,13 +32,13 @@ func (tx *Transaction) doInsertAttrViewBlock(operation *Operation) (ret *TxErr)tree, err := tx.loadTree(firstSrcID)if nil != err {logging.LogErrorf("load tree [%s] failed: %s", firstSrcID, err)- return &TxErr{code: TxErrCodeBlockNotFound, id: firstSrcID}+ return &TxErr{code: TxErrCodeBlockNotFound, id: firstSrcID, msg: err.Error()}}avID := operation.ParentIDfor _, id := range operation.SrcIDs {if err = addAttributeViewBlock(id, avID, tree); nil != err {- return &TxErr{code: TxErrWriteAttributeView, id: avID}+ return &TxErr{code: TxErrWriteAttributeView, id: avID, msg: err.Error()}}}return@@ -59,8 +59,6 @@ func (tx *Transaction) doRemoveAttrViewBlock(operation *Operation) (ret *TxErr)}}return-- return}func AddAttributeViewColumn(name string, typ string, columnIndex int, avID string) (err error) {