From 47485fdc0ce3dcc588b75b8d4c8d659bb19b2fa3 Mon Sep 17 00:00:00 2001 From: metamben <103100869+metamben@users.noreply.github.com> Date: Tue, 30 May 2023 21:39:36 +0300 Subject: [PATCH] Add JS wrapper for selected-aggregation-operators (#31158) Part of #31157. --- src/metabase/lib/js.cljs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/metabase/lib/js.cljs b/src/metabase/lib/js.cljs index c8444c30710..93289373204 100644 --- a/src/metabase/lib/js.cljs +++ b/src/metabase/lib/js.cljs @@ -339,6 +339,11 @@ [aggregation-operator] (to-array (lib.core/aggregation-operator-columns aggregation-operator))) +(defn ^:export selected-aggregation-operators + "Mark the operator and the column (if any) in `agg-operators` selected by `agg-clause`." + [agg-operators agg-clause] + (to-array (lib.core/selected-aggregation-operators (seq agg-operators) agg-clause))) + (defn ^:export filterable-columns "Get the available filterable columns for the stage with `stage-number` of the query `a-query`. -- GitLab