mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 09:26:28 +00:00
fix: property simple queries by name
Maintains backwards compatibility for property filter queries which fixes imported and handwritten property queries. Extended sqlite.build and test-helper capabilities in order to test this. Fixes LOG-3231
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
[frontend.util.text :as text-util]
|
||||
[frontend.util :as util]
|
||||
[frontend.config :as config]
|
||||
[logseq.db.frontend.property :as db-property]
|
||||
[frontend.state :as state]))
|
||||
|
||||
|
||||
@@ -284,7 +283,14 @@
|
||||
[property-name]
|
||||
(if (qualified-keyword? property-name)
|
||||
property-name
|
||||
(keyword db-property/default-user-namespace (name property-name))))
|
||||
(or (some->> (name property-name)
|
||||
(db-utils/q '[:find [(pull ?b [:db/ident]) ...]
|
||||
:in $ ?title
|
||||
:where [?b :block/type "property"] [?b :block/title ?title]])
|
||||
first
|
||||
:db/ident)
|
||||
;; Don't return nil as that incorrectly matches all properties
|
||||
::no-property-found)))
|
||||
|
||||
(defn- build-property-two-arg
|
||||
[e {:keys [db-graph?]}]
|
||||
|
||||
Reference in New Issue
Block a user