fix: inlined db-based-graph? calls in db-property

Addressed fixmes for db-based-graph fns that were inlined to prevent
circular dependencies b/n db-property and sqlite-util.  Moved multi
graph fns to db-property-util and existing db-property-util to
db-property-build to address this
This commit is contained in:
Gabriel Horner
2024-04-16 14:43:28 -04:00
parent bacba9db6e
commit 0aa4bda66c
13 changed files with 130 additions and 124 deletions

View File

@@ -6,7 +6,7 @@
(:require [logseq.db.sqlite.db :as sqlite-db]
[logseq.db.sqlite.util :as sqlite-util]
[logseq.db.sqlite.create-graph :as sqlite-create-graph]
[logseq.db.frontend.property.util :as db-property-util]
[logseq.db.frontend.property.build :as db-property-build]
[logseq.outliner.cli.pipeline :as cli-pipeline]
[logseq.common.util :as common-util]
[clojure.string :as string]
@@ -173,7 +173,7 @@
(fn [[prop-name]]
(if (get-in properties [prop-name :closed-values])
(let [db-ident (db-property/create-user-property-ident-from-name (name prop-name))]
(db-property-util/build-closed-values
(db-property-build/build-closed-values
db-ident
prop-name
(assoc (get properties prop-name) :db/ident db-ident)