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
Select database_id for cards in in-place search (#85453)
shubhamkapoor012b6e18f07123
diff --git a/src/metabase/search/in_place/legacy.clj b/src/metabase/search/in_place/legacy.cljindex 3e8c49d34eb..16f20a30ebc 100644--- a/src/metabase/search/in_place/legacy.clj+++ b/src/metabase/search/in_place/legacy.clj@@ -359,6 +359,7 @@[:collection.type :collection_type][:collection.location :collection_location][:collection.authority_level :collection_authority_level]+ [:card.database_id :database_id]:dashboard_idbookmark-col dashboardcard-count-col[:display :display_type]))diff --git a/test/metabase/search/in_place/legacy_test.clj b/test/metabase/search/in_place/legacy_test.cljindex 03d504b0262..1dc8a59ae51 100644--- a/test/metabase/search/in_place/legacy_test.clj+++ b/test/metabase/search/in_place/legacy_test.clj@@ -8,3 +8,9 @@reaches search results on the no-index fallback path (BOT-1570)"(is (some #{[:table.data_authority :data_authority]}(#'legacy/select-clause-for-model "table")))))++(deftest card-projection-includes-database-id-test+ (testing "the in-place card projection (shared by questions, models and metrics) selects database_id, so the+ join data picker can tell which database a card belongs to (#82060)"+ (is (some #{[:card.database_id :database_id]}+ (#'legacy/select-clause-for-model "card")))))