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

Overwrite dashboard description w/filters; nuke singleton label

parent bbfd17c4
No related branches found
No related tags found
No related merge requests found
......@@ -360,3 +360,4 @@ cards:
height: 3
width: 3
group: Singletons
x_label: ""
......@@ -256,8 +256,8 @@
not-empty
(map (fn [{:keys [field value]}]
(format "%s %s" (str/join " " field) value)))
(str/join "\n")
(str "Filtered by:\n")))
(str/join ", ")
(str "Filtered by: ")))
(defn save-transient-dashboard!
"Save a denormalized description of dashboard."
......@@ -267,12 +267,9 @@
(-> dashboard
(dissoc :ordered_cards :rule :related :transient_name
:transient_filters)
(update :description #(->> dashboard
:transient_filters
applied-filters-blurb
(vector %)
(filter some?)
(str/join "\n\n")))))]
(assoc :description (->> dashboard
:transient_filters
applied-filters-blurb))))]
(doseq [dashcard dashcards]
(let [card (some->> dashcard :card save-card!)
series (some->> dashcard :series (map save-card!))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment