Refactor/move property handler to outliner dep (#11311)

The end goal is to get rid of `db/transact!` and send outliner ops to
the db worker.

Currently, some property ops are async, set-block-property! will also
need to be async because when setting a non-ref value (e.g. a number
str "2"), we need to query whether a block with the value exists, this
unfortunately, will be an async query, so we're risking turning more
functions to async in the future which makes it hard to reason about
the implementation.
This commit is contained in:
Tienson Qin
2024-05-13 18:16:21 +08:00
committed by GitHub
parent 5bb8e03550
commit ce4cad2cc7
31 changed files with 1236 additions and 1029 deletions

View File

@@ -55,9 +55,3 @@
(let [repo (state/get-current-repo)
db (db/get-db repo)]
(db-property/get-closed-property-values db property-id)))
(defn get-closed-value-entity-by-name
[property-id value-name]
(let [repo (state/get-current-repo)
db (db/get-db repo)]
(db-property/get-closed-value-entity-by-name db property-id value-name)))