Skip to content
Snippets Groups Projects
Commit fe9896f9 authored by Cam Saul's avatar Cam Saul
Browse files

test fix

parent 74dbfb85
Branches
Tags
No related merge requests found
......@@ -133,9 +133,6 @@
;; [">" 1413 1]
;; [">=" 1412 4]]
(defn- field-id->special-type [field-id]
(sel :one :field [Field :special_type] :id field-id))
(defn- filter-subclause->predicate
"Given a filter SUBCLAUSE, return a Korma filter predicate form for use in korma `where`.
......
......@@ -15,6 +15,7 @@
(declare add-implicit-breakout-order-by
add-implicit-limit
add-implicit-fields
expand-date-values
get-special-column-info
preprocess-cumulative-sum
preprocess-structured
......@@ -75,6 +76,7 @@
add-implicit-breakout-order-by
add-implicit-limit
add-implicit-fields
expand-date-values
preprocess-cumulative-sum))]
(when-not *disable-qp-logging*
(log/debug (colorize.core/cyan "\n******************** PREPROCESSED: ********************\n"
......@@ -149,6 +151,16 @@
:field_type [not= "sensitive"], (order :position :asc), (order :id :desc))))))
;;; ### EXPAND-DATES
(defn expand-date-values
"Expand any dates in the `:filter` clause.
This is done so various implementations can cast date values appropriately by simply checking their types.
In the future when drivers are re-worked to deal with the Expanded Query directly this step will no longer be needed."
[query]
(assoc query :filter (-> *expanded-query* :query :filter expand/collapse))) ; collapse the filter clause from the expanded query and use that as the replacement
;; ### PREPROCESS-CUMULATIVE-SUM
(defn preprocess-cumulative-sum
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment