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 mbql time schema test (#67182)
Eric Normand4346b7d7c346
diff --git a/resources/openapi/openapi.json b/resources/openapi/openapi.jsonindex 8b15afb83c7..c2ae1e1dc3c 100644--- a/resources/openapi/openapi.json+++ b/resources/openapi/openapi.json@@ -30097,6 +30097,66 @@"tags" : [ "/api/preview_embed" ]}},+ "/api/preview_embed/card/{token}/params/{param-key}/values" : {+ "get" : {+ "description" : "Embedded version of api.card filter values endpoint.",+ "parameters" : [ {+ "in" : "path",+ "name" : "token",+ "required" : true,+ "schema" : {+ "type" : "string"+ }+ }, {+ "in" : "path",+ "name" : "param-key",+ "required" : true,+ "schema" : {+ "type" : "string"+ }+ } ],+ "responses" : {+ "2XX" : {+ "content" : {+ "application/json" : {+ "schema" : {+ "properties" : {+ "has_more_values" : {+ "type" : "boolean"+ },+ "values" : {+ "items" : {+ "anyOf" : [ {+ "prefixItems" : [ { }, {+ "type" : "string"+ } ],+ "type" : "array"+ }, {+ "prefixItems" : [ { } ],+ "type" : "array"+ } ]+ },+ "type" : "array"+ }+ },+ "required" : [ "has_more_values", "values" ],+ "type" : "object"+ }+ }+ },+ "description" : "map where {:has_more_values -> <boolean>, :values -> <sequence of vector with exactly 2 items of type: anything, string, or vector with exactly 1 items of type: anything>}"+ },+ "4XX" : {+ "description" : "Client error response"+ },+ "5XX" : {+ "description" : "Server error response"+ }+ },+ "summary" : "GET /api/preview_embed/card/{token}/params/{param-key}/values",+ "tags" : [ "/api/preview_embed" ]+ }+ },"/api/preview_embed/card/{token}/query" : {"get" : {"description" : "Fetch the query results for a Card you're considering embedding by passing a JWT `token`.",diff --git a/test/metabase/lib/schema/expression/temporal_test.cljc b/test/metabase/lib/schema/expression/temporal_test.cljcindex 4d663e680a8..1281a8d2933 100644--- a/test/metabase/lib/schema/expression/temporal_test.cljc+++ b/test/metabase/lib/schema/expression/temporal_test.cljc@@ -163,3 +163,9 @@["field"{:lib/uuid "9da67f88-9c46-4917-b964-07806f60870c", :effective-type "type/*", :base-type "type/*"}"DATE_TIME"]]))))++(deftest ^:parallel time-test+ (are [t] (not (me/humanize (mr/explain :mbql.clause/time [:time {:lib/uuid "00000000-0000-0000-0000-000000000000"} t :default])))+ "08:00"+ #?@(:clj [#t "08:00"+ #t "08:00+05:30"])))