mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 08:56:29 +00:00
fix: Insufficient bindings error after datascript upgrade
After upgrading our forked datascript from 1.5.3 to 1.7.1, bindings in two of our rules behaved differently. The workaround of adding an `and` where none was required before is sufficient. Fixes LOG-3177
This commit is contained in:
@@ -286,8 +286,16 @@ prop-d:: [[nada]]"}])
|
||||
"Multiple boolean operators with todo and priority operators")
|
||||
|
||||
(is (= ["DOING b4" "DOING b5"]
|
||||
(map testable-content
|
||||
(dsl-query "(and (task doing) (or [[A]] [[B]]))")))))
|
||||
(map testable-content
|
||||
(dsl-query "(and (task doing) (or [[A]] [[B]]))")))))
|
||||
|
||||
(when js/process.env.DB_GRAPH
|
||||
|
||||
;; Ensure some filters work when no data with relevant properties exist
|
||||
(deftest queries-with-no-data
|
||||
(load-test-files [])
|
||||
(is (= [] (dsl-query "(task todo)")))
|
||||
(is (= [] (dsl-query "(priority high)")))))
|
||||
|
||||
(deftest sample-queries
|
||||
(load-test-files [{:file/path "pages/page1.md"
|
||||
|
||||
Reference in New Issue
Block a user