mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 08:26:40 +00:00
fix: use ast blocks for advanced queries conversion
Fixes cases where BEGIN_QUERY nested in BEGIN_SRC were incorrectly being converted to queries e.g. most queries in https://docs.logseq.com/#/page/advanced%20queries
This commit is contained in:
committed by
Tienson Qin
parent
507ff3ce29
commit
cc05518ea5
@@ -396,10 +396,10 @@
|
||||
:logseq.property/query "{:query (task todo doing)}"
|
||||
:block/tags [:logseq.class/Query]
|
||||
:logseq.property.table/ordered-columns [:block/title]}
|
||||
(db-test/readable-properties (db-test/find-block-by-content @conn #"tasks with")))
|
||||
(db-test/readable-properties (db-test/find-block-by-content @conn #"tasks with todo")))
|
||||
"Advanced query has correct query properties")
|
||||
(is (= "tasks with todo and doing"
|
||||
(:block/title (db-test/find-block-by-content @conn #"tasks with")))
|
||||
(:block/title (db-test/find-block-by-content @conn #"tasks with todo")))
|
||||
"Advanced query has custom title migrated")
|
||||
|
||||
;; Cards
|
||||
|
||||
Reference in New Issue
Block a user