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
Danielb8e677b6d068
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex 2a66d78830..3548d324ad 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -145,7 +145,6 @@ func SetAttributeViewGroup(avID, blockID string, group *av.ViewGroup) (err errorview.Group = groupview.Groups = nil- // TODO Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964// 生成分组数据const (defaultGroupName = "_@default@_"@@ -169,6 +168,7 @@ func SetAttributeViewGroup(avID, blockID string, group *av.ViewGroup) (err error}return items[i].GetValue(group.Field).Number.Content > items[j].GetValue(group.Field).Number.Content})+ // TODO Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964}groupItemsMap := map[string][]av.Item{}@@ -214,6 +214,7 @@ func SetAttributeViewGroup(avID, blockID string, group *av.ViewGroup) (err errorfor _, item := range groupItems {v.GroupItemIDs = append(v.GroupItemIDs, item.GetID())}+ v.Name = nameview.Groups = append(view.Groups, v)view.GroupDefault = name == defaultGroupName}