fix: aliasing of namespaced pages broken

Also fixes docs graph warnings about ignored attributes
This commit is contained in:
Gabriel Horner
2024-12-11 14:33:01 -05:00
committed by Tienson Qin
parent f58f83eb38
commit 3dff9e26c0
2 changed files with 12 additions and 24 deletions

View File

@@ -320,6 +320,14 @@
(is (= #{"gpt"}
(:block/alias (readable-properties @conn (db-test/find-page-by-title @conn "chat-gpt"))))
"alias set correctly")
(is (= ["y"]
(->> (d/q '[:find [?b ...] :where [?b :block/title "y"] [?b :logseq.property/parent]]
@conn)
first
(d/entity @conn)
:block/alias
(map :block/title)))
"alias set correctly on namespaced page")
(is (= {:logseq.property.linked-references/includes #{"Oct 9th, 2024"}
:logseq.property.linked-references/excludes #{"ref2"}}