mirror of
https://github.com/logseq/logseq.git
synced 2026-05-25 21:24:21 +00:00
wip: remove :block/name uniqueness for db based graphs
This PR also remove supports for: 1. merge pages when renaming a page to existing page 2. namespaces such as a/b/c 3. nested page such as [[a [[nested page]]]] Pages merge might be added back depends on RTC, but it should be decoupled from renaming, otherwise it's too complex. Namespaces and nested pages have been contributed some critical bugs that lead data-loss, they're so complex together with page alias, it's just impossible to have a good test coverage and ensure the app is stable, especially when page rename and RTC.
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
(def operators [:and :or :not])
|
||||
(def operators-set (set operators))
|
||||
(def page-filters ["all page tags"
|
||||
"namespace"
|
||||
"tags"
|
||||
"property"
|
||||
"sample"])
|
||||
@@ -155,7 +154,7 @@
|
||||
(last f))]
|
||||
(into [(symbol (first f))] [(second f) l]))
|
||||
|
||||
(and (vector? f) (contains? #{:page :namespace :tags} (keyword (first f))))
|
||||
(and (vector? f) (contains? #{:page :tags} (keyword (first f))))
|
||||
(into [(symbol (first f))] (map ->page-ref (rest f)))
|
||||
|
||||
:else f))
|
||||
|
||||
Reference in New Issue
Block a user