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
update generated docs (#62138)
Jeff Bruemmer63a634de520f
diff --git a/docs/api.html b/docs/api.htmlindex ac912e90fff..dfde04acb9e 100644--- a/docs/api.html+++ b/docs/api.html@@ -2312,7 +2312,6 @@ redirect_from:},"metabase.legacy-mbql.schema.IntGreaterThanZeroOrNumericExpression" : {"oneOf" : [ {- "description" : "Must be a positive integer.","type" : "integer","minimum" : 1}, {@@ -2610,12 +2609,10 @@ redirect_from:"type" : "object","properties" : {"items" : {- "description" : "Must be a positive integer.","type" : "integer","minimum" : 1},"page" : {- "description" : "Must be a positive integer.","type" : "integer","minimum" : 1}@@ -2909,9 +2906,7 @@ redirect_from:"type" : "object","properties" : {"database" : {- "description" : "Must be a positive integer.",- "type" : "integer",- "minimum" : 1+ "$ref" : "#/components/schemas/metabase.lib.schema.id.database"},"display-name" : {"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"@@ -2923,9 +2918,7 @@ redirect_from:"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"},"snippet-id" : {- "description" : "Must be a positive integer.",- "type" : "integer",- "minimum" : 1+ "$ref" : "#/components/schemas/metabase.lib.schema.id.snippet"},"snippet-name" : {"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"@@ -2941,9 +2934,7 @@ redirect_from:"type" : "object","properties" : {"card-id" : {- "description" : "Must be a positive integer.",- "type" : "integer",- "minimum" : 1+ "$ref" : "#/components/schemas/metabase.lib.schema.id.card"},"display-name" : {"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"@@ -3648,6 +3639,10 @@ redirect_from:"type" : "integer","minimum" : 1},+ "metabase.lib.schema.id.snippet" : {+ "type" : "integer",+ "minimum" : 1+ },"metabase.lib.schema.id.table" : {"type" : "integer","minimum" : 1@@ -3815,14 +3810,49 @@ redirect_from:"type" : "string","enum" : [ "source/card", "source/native", "source/previous-stage", "source/table-defaults", "source/aggregations", "source/joins", "source/expressions", "source/implicitly-joinable" ]},- "metabase.lib.schema.metadata..column.validate-expression-source" : {- "description" : "Only allow `:lib/expression-name` when `:lib/source` is `:source/expressions`. If it's anything else, it probably\n means it's getting incorrectly propagated from a previous stage (QUE-1342)."+ "metabase.lib.schema.metadata..column.validate-for-source" : {+ "description" : "Do additional validation for column metadata based on `:lib/source`.",+ "oneOf" : [ {+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source-card"+ }, {+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source-native"+ }, {+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source-previous-stage"+ }, {+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source-table-defaults"+ }, {+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source-aggregations"+ }, {+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source-joins"+ }, {+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source-expressions"+ }, {+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source-implicitly-joinable"+ }, { } ]+ },+ "metabase.lib.schema.metadata..column.validate-for-source-aggregations" : {+ "allOf" : [ ]+ },+ "metabase.lib.schema.metadata..column.validate-for-source-card" : {+ "allOf" : [ ]+ },+ "metabase.lib.schema.metadata..column.validate-for-source-expressions" : {+ "allOf" : [ ]+ },+ "metabase.lib.schema.metadata..column.validate-for-source-implicitly-joinable" : {+ "allOf" : [ ]+ },+ "metabase.lib.schema.metadata..column.validate-for-source-joins" : {+ "allOf" : [ ]},- "metabase.lib.schema.metadata..column.validate-native-column" : {- "description" : "Certain keys cannot possibly be set when a column comes from directly from native query results, for example\n `:lib/breakout?` or join aliases"+ "metabase.lib.schema.metadata..column.validate-for-source-native" : {+ "allOf" : [ ]},- "metabase.lib.schema.metadata..column.validate-table-defaults-column" : {- "description" : "A column with :lib/source :source/table-defaults cannot possibly have a join alias."+ "metabase.lib.schema.metadata..column.validate-for-source-previous-stage" : {+ "allOf" : [ ]+ },+ "metabase.lib.schema.metadata..column.validate-for-source-table-defaults" : {+ "allOf" : [ ]},"metabase.lib.schema.metadata..column.visibility-type" : {"type" : "string",@@ -3837,7 +3867,7 @@ redirect_from:"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.visibility-type"},"fk-join-alias" : {- "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"},"lib/external-remap" : {"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.external"@@ -3877,7 +3907,7 @@ redirect_from:"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"},"fk-field-name" : {- "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"+ "type" : "string"},"name" : {"type" : "string"@@ -3942,9 +3972,6 @@ redirect_from:"lib/original-name" : {"$ref" : "#/components/schemas/metabase.lib.schema.metadata.original-name"},- "lib/hack-original-name" : {- "$ref" : "#/components/schemas/metabase.lib.schema.metadata.original-name"- },"semantic-type" : {"$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"},@@ -3962,11 +3989,7 @@ redirect_from:}, {"$ref" : "#/components/schemas/metabase.lib.schema.metadata.kebab-cased-map"}, {- "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-expression-source"- }, {- "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-native-column"- }, {- "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-table-defaults-column"+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source"} ]},"metabase.lib.schema.metadata.deduplicated-name" : {@@ -4102,7 +4125,7 @@ redirect_from:"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.visibility-type"},"fk-join-alias" : {- "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"+ "$ref" : "#/components/schemas/metabase.lib.schema.join.alias"},"lib/external-remap" : {"$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.remapping.external"@@ -4142,7 +4165,7 @@ redirect_from:"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"},"fk-field-name" : {- "$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"+ "type" : "string"},"name" : {"type" : "string"@@ -4207,9 +4230,6 @@ redirect_from:"lib/original-name" : {"$ref" : "#/components/schemas/metabase.lib.schema.metadata.original-name"},- "lib/hack-original-name" : {- "$ref" : "#/components/schemas/metabase.lib.schema.metadata.original-name"- },"semantic-type" : {"$ref" : "#/components/schemas/metabase.lib.schema.common.semantic-or-relation-type"},@@ -4227,11 +4247,7 @@ redirect_from:}, {"$ref" : "#/components/schemas/metabase.lib.schema.metadata.kebab-cased-map"}, {- "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-expression-source"- }, {- "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-native-column"- }, {- "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-table-defaults-column"+ "$ref" : "#/components/schemas/metabase.lib.schema.metadata..column.validate-for-source"} ]}, {"$ref" : "#/components/schemas/metabase.legacy-mbql.schema.legacy-column-metadata"@@ -20031,8 +20047,7 @@ redirect_from:"name" : "q","required" : false,"schema" : {- "type" : "string",- "minLength" : 1+ "type" : "string"}}, {"in" : "query",diff --git a/docs/configuring-metabase/config-template.md b/docs/configuring-metabase/config-template.mdindex 28c920a885d..cb1b9fa3997 100644--- a/docs/configuring-metabase/config-template.md+++ b/docs/configuring-metabase/config-template.md@@ -4,7 +4,7 @@ title: "Metabase config file template"# Metabase config file template-You can generate the following config file template by changing into the top-level Metabase directory and running:+You can generate the following docs by changing into the top-level Metabase directory and running:```clojure -M:doc:ee config-template@@ -12,6 +12,7 @@ clojure -M:doc:ee config-templateThe template lists example `database`, `user`, and `settings` sections for the [config file](./config-file.md).+```yaml# A config file template for Metabase.# You'll need to update (or remove) the `users` and `databases` sections.@@ -26,45 +27,45 @@ The template lists example `database`, `user`, and `settings` sections for the [version: 1config:users:- - first_name: First- last_name: Person- password: metabot1- email: [email protected]- - first_name: Normal- last_name: Person- password: metabot1- email: [email protected]- - first_name: Admin- last_name: Person- password: metabot1- is_superuser: true- email: [email protected]+ - first_name: First+ last_name: Person+ password: metabot1+ email: [email protected]+ - first_name: Normal+ last_name: Person+ password: metabot1+ email: [email protected]+ - first_name: Admin+ last_name: Person+ password: metabot1+ is_superuser: true+ email: [email protected]databases:- - name: Sample PostgreSQL- engine: postgres- details:- host: postgres-data- port: 5432- user: metabase- password: metasample123- dbname: sample- - name: Sample MySQL- engine: mysql- details:- host: mysql-data- port: 3306- user: metabase- password: metasample123- dbname: sample+ - name: Sample PostgreSQL+ engine: postgres+ details:+ host: postgres-data+ port: 5432+ user: metabase+ password: metasample123+ dbname: sample+ - name: Sample MySQL+ engine: mysql+ details:+ host: mysql-data+ port: 3306+ user: metabase+ password: metasample123+ dbname: sampleapi-keys:- - name: Admin API key- group: admin- creator: [email protected]- key: mb_firsttestapikey123- - name: All Users API key- group: all-users- creator: [email protected]- key: mb_secondtestapikey456+ - name: Admin API key+ group: admin+ creator: [email protected]+ key: mb_firsttestapikey123+ - name: All Users API key+ group: all-users+ creator: [email protected]+ key: mb_secondtestapikey456settings:admin-email: nullaggregated-query-row-limit: null@@ -102,6 +103,7 @@ config:application-name: Metabaseattachment-row-limit: nullattachment-table-row-limit: 20+ audit-max-retention-days: nullbcc-enabled: truebreakout-bin-width: 10.0breakout-bins-num: 8@@ -156,7 +158,9 @@ config:health-check-logging-enabled: truehelp-link: metabasehelp-link-custom-destination: https://www.metabase.com/help/premium+ http-channel-host-strategy: external-onlyhumanization-strategy: simple+ install-analytics-database: truejdbc-data-warehouse-max-connection-pool-size: 15jwt-attribute-email: emailjwt-attribute-firstname: first_name@@ -168,7 +172,7 @@ config:jwt-identity-provider-uri: nulljwt-shared-secret: nulljwt-user-provisioning-enabled: true- landing-page: ""+ landing-page: ''landing-page-illustration: defaultlanding-page-illustration-custom: nullldap-attribute-email: mail@@ -190,6 +194,7 @@ config:ldap-user-filter: (&(objectClass=inetOrgPerson)(|(uid={login})(mail={login})))ldap-user-provisioning-enabled: truelicense-token-missing-banner-dismissal-timestamp: []+ load-analytics-content: trueloading-message: doing-sciencelogin-page-illustration: defaultlogin-page-illustration-custom: null@@ -240,6 +245,7 @@ config:search-engine: appdbsearch-language: nullsearch-typeahead-enabled: true+ send-email-on-first-login-from-new-device: truesend-new-sso-user-admin-email: nullsession-cookie-samesite: laxsession-cookies: null@@ -247,6 +253,7 @@ config:setup-embedding-autoenabled: falsesetup-license-active-at-setup: falseshow-database-syncing-modal: null+ show-google-sheets-integration: nullshow-homepage-data: trueshow-homepage-xrays: trueshow-metabase-links: true@@ -264,6 +271,7 @@ config:start-of-week: sundaysubscription-allowed-domains: nullsurveys-enabled: true+ sync-leaf-fields-limit: 1000synchronous-batch-updates: falseunaggregated-query-row-limit: nulluploads-settings: nulldiff --git a/docs/configuring-metabase/environment-variables.md b/docs/configuring-metabase/environment-variables.mdindex ebbf660e6df..63dc5282f53 100644--- a/docs/configuring-metabase/environment-variables.md+++ b/docs/configuring-metabase/environment-variables.md@@ -259,6 +259,22 @@ Maximum number of rows to render in an alert or subscription image.Range: 1-100. To limit the total number of rows included in the file attachmentfor an email dashboard subscription, use MB_ATTACHMENT_ROW_LIMIT.+### `MB_AUDIT_MAX_RETENTION_DAYS`++- Type: string+- Default: `null`++Number of days to retain data in audit-related tables. Minimum value is 30; set to 0 to retain data indefinitely.++Sets the maximum number of days Metabase preserves rows for the following application database tables:++- `query_execution`+- `audit_log`+- `view_log`++Twice a day, Metabase will delete rows older than this threshold. The minimum value is 30 days (Metabase will treat entered values of 1 to 29 the same as 30).+If set to 0, Metabase will keep all rows.+### `MB_BCC_ENABLED`- Type: boolean@@ -759,6 +775,18 @@ Keyword setting to control whitelabeling of the help link. Valid values are `:meCustom URL for the help link.+### `MB_HTTP_CHANNEL_HOST_STRATEGY`++- Type: keyword+- Default: `:external-only`++Controls which types of hosts are allowed as HTTP channel destinations.+Options:+- external-only (default - only external hosts)+- allow-private (external + private networks but NOT localhost)+- allow-all (no restrictions including localhost).+.+### `MB_HUMANIZATION_STRATEGY`- Type: keyword@@ -768,6 +796,16 @@ Custom URL for the help link.To make table and field names more human-friendly, Metabase will replace dashes and underscores in them with spaces. We’ll capitalize each word while at it, so ‘last_visited_at’ will become ‘Last Visited At’.+### `MB_INSTALL_ANALYTICS_DATABASE`++- Type: boolean+- Default: `true`++Whether or not we should install the Metabase analytics database on startup. Defaults to true, but can be disabled+ via environmment variable.++Setting this environment variable to false will prevent installing the analytics database, which is handy in a migration use-case where it conflicts with the incoming database.+### `MB_JDBC_DATA_WAREHOUSE_MAX_CONNECTION_POOL_SIZE`- Type: integer@@ -1072,6 +1110,16 @@ don't have one.The array of last two ISO8601 dates when an admin dismissed the license token missing banner.+### `MB_LOAD_ANALYTICS_CONTENT`++- Type: boolean+- Default: `true`++Whether or not we should load Metabase analytics content on startup. Defaults to match `install-analytics-database`,+ which defaults to true, but can be disabled via environment variable.++Setting this environment variable to false can also come in handy when migrating environments, as it can simplify the migration process.+### `MB_LOADING_MESSAGE`> Only available on Metabase [Pro](https://www.metabase.com/product/pro) and [Enterprise](https://www.metabase.com/product/enterprise) plans.@@ -1539,6 +1587,18 @@ When using the appdb engine against postgresql, override the language used for sEnable typeahead search in the Metabase navbar?+### `MB_SEND_EMAIL_ON_FIRST_LOGIN_FROM_NEW_DEVICE`++- Type: boolean+- Default: `true`++Should we send users a notification email the first time they log in from a new device? (Default: true). This is+ currently only configurable via environment variable so users who gain access to an admin's credentials cannot+ disable this Setting and access their account without them knowing.++This variable also controls the geocoding service that Metabase uses to know the location of your logged in users.+ Setting this variable to false also disables this reverse geocoding functionality.+### `MB_SEND_NEW_SSO_USER_ADMIN_EMAIL`- Type: boolean@@ -1607,6 +1667,16 @@ Indicates if at the end of the setup a valid license was active.Whether an introductory modal should be shown after the next database connection is added. Defaults to false if any non-default database has already finished syncing for this instance.+### `MB_SHOW_GOOGLE_SHEETS_INTEGRATION`++- Type: boolean+- Default: `null`+- [Configuration file name](./config-file.md): `show-google-sheets-integration`++Whether or not to show the user a button that sets up Google Sheets integration.++When enabled, we show users a button to authenticate with Google to import data from Google Sheets.+### `MB_SHOW_HOMEPAGE_DATA`- Type: boolean@@ -1773,6 +1843,14 @@ Allowed email address domain(s) for new Dashboard Subscriptions and Alerts. To sEnable or disable surveys.+### `MB_SYNC_LEAF_FIELDS_LIMIT`++- Type: integer+- Default: `1000`+- [Exported as](../installation-and-operation/serialization.md): `sync-leaf-fields-limit`.++Maximum number of leaf fields synced per collection of document database. Currently relevant for Mongo. Not to be confused with total number of synced fields. For every chosen leaf field, all intermediate fields from root to leaf are synced as well.+### `MB_SYNCHRONOUS_BATCH_UPDATES`- Type: boolean