fix: importing namespaced tags with spaces

Fixes https://github.com/logseq/db-test/issues/210. Also fix invalid
EDN class db-ident related to this
This commit is contained in:
Gabriel Horner
2025-01-23 14:21:26 -05:00
parent a1f29cc05a
commit 88d74cb71f
4 changed files with 10 additions and 7 deletions

View File

@@ -197,7 +197,7 @@
#_(map #(select-keys % [:block/title :block/tags]))
count))
"Correct number of pages with block content")
(is (= 12 (->> @conn
(is (= 13 (->> @conn
(d/q '[:find [?ident ...]
:where [?b :block/tags :logseq.class/Tag] [?b :db/ident ?ident] (not [?b :logseq.property/built-in?])])
count))
@@ -270,7 +270,7 @@
(is (= {:user.property/prop-bool true
:user.property/prop-num 5
:user.property/prop-string "yeehaw"
:block/tags [:logseq.class/Page]}
:block/tags [:logseq.class/Page :user.class/Some---Namespace]}
(readable-properties @conn (db-test/find-page-by-title @conn "some page")))
"Existing page has correct properties")