Skip to content
Snippets Groups Projects
Commit 2fa9834c authored by Simon Belak's avatar Simon Belak
Browse files

Enable autoD for table-like cards & adhoc questions

parent 1592a53d
Branches
Tags
No related merge requests found
......@@ -81,21 +81,24 @@
[id]
(-> id Metric api/check-404 magic/automagic-analysis))
(api/defendpoint GET "/field/:id"
"Return an automagic dashboard analyzing field with id `id`."
[id]
(-> id Field api/check-404 :table_id Table magic/automagic-dashboard))
;; (api/defendpoint GET "/field/:id"
;; "Return an automagic dashboard analyzing field with id `id`."
;; [id]
;; (-> id Field api/check-404 :table_id Table magic/automagic-dashboard))
(api/defendpoint GET "/question/:id"
"Return an automagic dashboard analyzing question with id `id`."
[id]
(-> id Card api/check-404 :table_id Table magic/automagic-dashboard))
(-> id Card api/check-404 magic/automagic-analysis))
;; (api/defendpoint GET "/adhoc/:query"
;; "Return an automagic dashboard analyzing ad hoc query."
;; [query]
;; )
(api/defendpoint GET "/adhoc/:query"
"Return an automagic dashboard analyzing ad hoc query."
[query]
(-> query
codec/base64-decode
json/decode
card.api/adhoc-query
magic/automagic-analysis))
(def ^:private valid-comparison-pair?
#{["segment" "segment"]
......
......@@ -546,11 +546,11 @@
(defmethod automagic-analysis (type Card)
[card]
)
(automagic-dashboard card))
(defmethod automagic-analysis (type Query)
[query]
)
(automagic-dashboard query))
(defmethod automagic-analysis (type Field)
[field]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment