Skip to content
Snippets Groups Projects
Unverified Commit 2512d29a authored by Alexander Solovyov's avatar Alexander Solovyov Committed by GitHub
Browse files

[xray] separate limits for max cards in section and max total cards (#46436)

parent 07bc6afa
No related branches found
No related tags found
No related merge requests found
......@@ -560,7 +560,8 @@
:cards dashcards)))
(def ^:private ^:const ^Long max-related 8)
(def ^:private ^:const ^Long max-cards 30)
(def ^:private ^:const ^Long max-cards 15)
(def ^:private ^:const ^Long max-cards-total 30)
(defn ->related-entity
"Turn `entity` into an entry in `:related.`"
......@@ -876,7 +877,8 @@
:dashboard-templates-prefix ["table"]})
opts)]
(automagic-dashboard root'))
(let [root' (merge root
(let [opts (assoc opts :show max-cards-total)
root' (merge root
(when cell-query
{:url cell-url})
opts)
......
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