fix: block references to annotations

Don't rewrite annotation uuids as we don't do that for other existing blocks
This commit is contained in:
Gabriel Horner
2025-07-15 13:36:54 -04:00
committed by Gabriel Horner
parent ad5c776f46
commit f4a8b9438e
3 changed files with 8 additions and 23 deletions

View File

@@ -192,7 +192,7 @@
(remove #(= [{:db/ident :logseq.class/Tag}] (:block/tags %)))))
"All classes only have :logseq.class/Tag as their tag (and don't have Page)")))
(deftest-async ^:focus export-basic-graph-with-convert-all-tags
(deftest-async export-basic-graph-with-convert-all-tags
;; This graph will contain basic examples of different features to import
(p/let [file-graph-dir "test/resources/exporter-test-graph"
conn (db-test/create-conn)
@@ -208,7 +208,7 @@
;; Counts
;; Includes journals as property values e.g. :logseq.property/deadline
(is (= 28 (count (d/q '[:find ?b :where [?b :block/tags :logseq.class/Journal]] @conn))))
(is (= 29 (count (d/q '[:find ?b :where [?b :block/tags :logseq.class/Journal]] @conn))))
(is (= 5 (count (d/q '[:find ?b :where [?b :block/tags :logseq.class/Asset]] @conn))))
(is (= 4 (count (d/q '[:find ?b :where [?b :block/tags :logseq.class/Task]] @conn))))