fix: imported pages don't have :block/refs

Fixes logseq/db-test#134. Also does a good chunk of
https://github.com/logseq/db-test/issues/134 as ref calculation of db
graphs was refactored to be reused across UI and CLI
This commit is contained in:
Gabriel Horner
2024-12-03 16:16:56 -05:00
parent 43542bca3c
commit 14a621fdcb
5 changed files with 48 additions and 31 deletions

View File

@@ -171,6 +171,7 @@
(p/let [file-graph-dir "test/resources/docs-0.10.9"
_ (docs-graph-helper/clone-docs-repo-if-not-exists file-graph-dir "v0.10.9")
conn (db-test/create-conn)
_ (db-pipeline/add-listener conn)
{:keys [import-state]}
(import-file-graph-to-db file-graph-dir conn {:convert-all-tags? true})]