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: Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
Daniel155b2de26092
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex 5cdee4eb98..11a139036e 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -1514,7 +1514,7 @@ func renderAttributeView(attrView *av.AttributeView, blockID, viewID, query striif isGroupByDate(view) {updatedDate := time.UnixMilli(view.GroupUpdated).Format("2006-01-02")if time.Now().Format("2006-01-02") != updatedDate {- genAttrViewViewGroups(view, attrView)+ regenAttrViewViewGroups(attrView, "force")av.SaveAttributeView(attrView)}@@ -4562,8 +4562,10 @@ func regenAttrViewViewGroups(attrView *av.AttributeView, keyID string) {continue}- if av.KeyTypeTemplate != groupKey.Type && view.Group.Field != keyID {- continue+ if "force" != keyID {+ if av.KeyTypeTemplate != groupKey.Type && view.Group.Field != keyID {+ continue+ }}genAttrViewViewGroups(view, attrView)diff --git a/kernel/model/transaction.go b/kernel/model/transaction.goindex 6d53042d35..a9a0aff788 100644--- a/kernel/model/transaction.go+++ b/kernel/model/transaction.go@@ -1539,6 +1539,12 @@ func upsertAvBlockRel(node *ast.Node) {affectedAvIDs = append(affectedAvIDs, relatedAvIDs...)affectedAvIDs = gulu.Str.RemoveDuplicatedElem(affectedAvIDs)for _, avID := range affectedAvIDs {+ attrView, _ := av.ParseAttributeView(avID)+ if nil != attrView {+ regenAttrViewViewGroups(attrView, "force")+ av.SaveAttributeView(attrView)+ }+ReloadAttrView(avID)}}()