Merge branch 'master' into fix/dsl-query-boolean-operators

This commit is contained in:
Gabriel Horner
2022-03-04 09:54:23 -05:00
29 changed files with 561 additions and 362 deletions

View File

@@ -561,12 +561,19 @@
(take @sample (shuffle col)))
identity)
transform-fn (comp sort-by random-samples)]
(react/react-query repo
{:query query
:rules rules
:query-string query-string}
{:use-cache? false
:transform-fn transform-fn}))))))))))
(try
(react/react-query repo
{:query query
:query-string query-string
:rules rules
:throw-exception true}
{:use-cache? false
:transform-fn transform-fn})
(catch ExceptionInfo e
;; Allow non-existent page queries to be ignored
(if (string/includes? (str (.-message e)) "Nothing found for entity")
(log/error :query-dsl-error e)
(throw e)))))))))))))
(defn custom-query
[repo query-m query-opts]