mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 08:26:40 +00:00
fix: importer failing when property-pages/* config present
Fixes https://github.com/logseq/db-test/issues/220. Also removed unused :extract-refs-from-property-value-fn
This commit is contained in:
@@ -673,6 +673,17 @@
|
||||
(is (= "Thing" (get-in (d/entity @conn :user.class/CreativeWork) [:logseq.property/parent :block/title]))
|
||||
"New page correctly set as class parent")))
|
||||
|
||||
(deftest-async export-files-with-property-pages-disabled
|
||||
(p/let [file-graph-dir "test/resources/exporter-test-graph"
|
||||
;; any page with properties
|
||||
files (mapv #(node-path/join file-graph-dir %) ["journals/2024_01_17.md"])
|
||||
conn (db-test/create-conn)
|
||||
_ (import-files-to-db files conn {:user-config {:property-pages/enabled? false
|
||||
:property-pages/excludelist #{:prop-string}}})]
|
||||
|
||||
(is (empty? (map :entity (:errors (db-validate/validate-db! @conn))))
|
||||
"Created graph has no validation errors")))
|
||||
|
||||
(deftest-async export-config-file-sets-title-format
|
||||
(p/let [conn (db-test/create-conn)
|
||||
read-file #(p/do! (pr-str {:journal/page-title-format "yyyy-MM-dd"}))
|
||||
|
||||
Reference in New Issue
Block a user