The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Add test case missing from #65240 (#65327)
metambene62903b72a7e
diff --git a/test/metabase/search/filter_test.clj b/test/metabase/search/filter_test.cljindex 2709ab1a8f1..3219390ed7d 100644--- a/test/metabase/search/filter_test.clj+++ b/test/metabase/search/filter_test.clj@@ -25,6 +25,11 @@(defn- with-all-models-and-sandboxed-user [search-ctx](with-all-models (assoc search-ctx :is-impersonated-user? false :is-sandboxed-user? true)))+(defn- with-all-models-and-superuser [search-ctx]+ (-> search-ctx+ with-all-models-and-regular-user+ (assoc :is-superuser? true)))+(defn- test-value-for-filter"Returns an appropriate test value for each filter type."[filter-key]@@ -61,6 +66,10 @@(is (= (disj search.config/all-models "indexed-entity" "transform")(search.filter/search-context->applicable-models (with-all-models-and-sandboxed-user {:archived? false})))))+ (testing "All models including transforms are visible for superusers"+ (is (= search.config/all-models+ (search.filter/search-context->applicable-models (with-all-models-and-superuser {:archived? false})))))+(doseq [active-filters (active-filter-combinations)](testing (str "Consistent models included when filtering on " (vec active-filters))(let [search-ctx (with-all-models-and-regular-user (create-test-filter-context active-filters))]