Skip to content

Commit 732e07b

Browse files
github-automation-metabaseMetabase Docs bot
andauthored
[auto] adding content to release-x.57.x->release-x.57.x (#780)
Co-authored-by: Metabase Docs bot <[email protected]>
1 parent 71a9a36 commit 732e07b

File tree

299 files changed

+62541
-62037
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

299 files changed

+62541
-62037
lines changed

_docs/v0.57/api.html

Lines changed: 3 additions & 30721 deletions
Large diffs are not rendered by default.

_docs/v0.57/api.json

Lines changed: 30738 additions & 0 deletions
Large diffs are not rendered by default.

_docs/v0.57/configuring-metabase/appearance.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ Appearance settings are split across different tabs:
3939

4040
People can display their Metabase in dark mode in their [account settings](../people-and-groups/account-settings#theme). Options are:
4141

42-
- System default (which is also the default setting). Metabase will switch between light and dark mode when the system switches without having to reload the page.
43-
- Always use dark mode.
44-
- Always use light mode.
42+
- System default (which is also the default setting). Metabase will switch between light and dark mode when the system switches without having to reload the page.
43+
- Always use dark mode.
44+
- Always use light mode.
45+
46+
You can quickly toggle dark mode from anywhere in Metabase by opening the [command palette](../exploration-and-organization/exploration#command-palette) and searching for "light" or "dark" or "theme".
4547

4648
Dark mode is a user-level setting, not an instance-level setting. Currently, there's no way to change the theme to dark mode for the entire instance, but you can edit some [user interface colors](#user-interface-colors).
4749

_docs/v0.57/configuring-metabase/config-template.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ config:
162162
health-check-logging-enabled: true
163163
help-link: metabase
164164
help-link-custom-destination: https://www.metabase.com/help/premium
165+
hide-stacktraces: false
165166
http-channel-host-strategy: external-only
166167
humanization-strategy: simple
167168
index-update-thread-count: 2
@@ -222,6 +223,13 @@ config:
222223
query-caching-max-kb: 2000
223224
query-caching-max-ttl: 3024000.0
224225
redirect-all-requests-to-https: false
226+
remote-sync-auto-import: false
227+
remote-sync-auto-import-rate: 5
228+
remote-sync-branch: null
229+
remote-sync-task-time-limit-ms: 300000
230+
remote-sync-token: null
231+
remote-sync-type: production
232+
remote-sync-url: null
225233
report-timezone: null
226234
reset-token-ttl-hours: 48
227235
retry-initial-interval: 500

_docs/v0.57/configuring-metabase/environment-variables.md

Lines changed: 70 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Allowed iframe hosts.
114114
- Default: `true`
115115
- [Configuration file name](./config-file): `anon-tracking-enabled`
116116

117-
Enable the collection of anonymous usage data to help Metabase improve.
117+
Enable the collection of anonymous usage data in order to help Metabase improve.
118118

119119
### `MB_API_KEY`
120120

@@ -372,7 +372,7 @@ Whether dashboards should default to a user's last used parameters on load.
372372
- Type: integer
373373
- Default: `10000`
374374

375-
Consider metabase.driver/can-connect? / can-connect-with-details? to have failed if they were unable to
375+
Consider metabase.driver/can-connect? / can-connect-with-details? to have failed if they were not able to
376376
successfully connect after this many milliseconds. By default, this is 10 seconds.
377377

378378
Timeout in milliseconds for connecting to databases, both Metabase application database and data connections.
@@ -451,7 +451,7 @@ The name you want to use for the sender of emails.
451451
- [Configuration file name](./config-file): `email-max-recipients-per-second`
452452

453453
The maximum number of recipients, summed across emails, that can be sent per second.
454-
Note that the final email sent before reaching the limit can exceed it, if it has multiple recipients.
454+
Note that the final email sent before reaching the limit is able to exceed it, if it has multiple recipients.
455455

456456
### `MB_EMAIL_REPLY_TO`
457457

@@ -754,6 +754,14 @@ Keyword setting to control whitelabeling of the help link. Valid values are `:me
754754

755755
Custom URL for the help link.
756756

757+
### `MB_HIDE_STACKTRACES`
758+
759+
- Type: boolean
760+
- Default: `false`
761+
- [Configuration file name](./config-file): `hide-stacktraces`
762+
763+
Prevent the exception middleware from including stacktraces in responses.
764+
757765
### `MB_HTTP_CHANNEL_HOST_STRATEGY`
758766

759767
- Type: keyword
@@ -1244,7 +1252,7 @@ Indicates whether Metabase is running behind a proxy that sets the source-addres
12441252
By default "Site Url" is used in notification links, but can be overridden.
12451253

12461254
The base URL where dashboard notitification links will point to instead of the Metabase base URL.
1247-
Only applicable for users who use interactive embedding and subscriptions.
1255+
Only applicable for users who utilize interactive embedding and subscriptions.
12481256

12491257
### `MB_NOTIFICATION_SYSTEM_EVENT_THREAD_POOL_SIZE`
12501258

@@ -1313,6 +1321,62 @@ The absolute maximum time to keep any cached query results, in seconds.
13131321

13141322
Force all traffic to use HTTPS via a redirect, if the site URL is HTTPS.
13151323

1324+
### `MB_REMOTE_SYNC_AUTO_IMPORT`
1325+
1326+
- Type: boolean
1327+
- Default: `false`
1328+
- [Configuration file name](./config-file): `remote-sync-auto-import`
1329+
1330+
Whether to automatically import from the remote git repository. Only applies if remote-sync-type is :production.
1331+
1332+
### `MB_REMOTE_SYNC_AUTO_IMPORT_RATE`
1333+
1334+
- Type: integer
1335+
- Default: `5`
1336+
- [Configuration file name](./config-file): `remote-sync-auto-import-rate`
1337+
1338+
If remote-sync-type is :production and remote-sync-auto-import is true, the rate (in minutes) at which to check for updates to import. Defaults to 5.
1339+
1340+
### `MB_REMOTE_SYNC_BRANCH`
1341+
1342+
- Type: string
1343+
- Default: `null`
1344+
- [Configuration file name](./config-file): `remote-sync-branch`
1345+
1346+
The remote branch to sync with, e.g. `main`.
1347+
1348+
### `MB_REMOTE_SYNC_TASK_TIME_LIMIT_MS`
1349+
1350+
- Type: integer
1351+
- Default: `300000`
1352+
- [Configuration file name](./config-file): `remote-sync-task-time-limit-ms`
1353+
1354+
The maximum amount of time a remote sync task will be given to complete.
1355+
1356+
### `MB_REMOTE_SYNC_TOKEN`
1357+
1358+
- Type: string
1359+
- Default: `null`
1360+
- [Configuration file name](./config-file): `remote-sync-token`
1361+
1362+
An Authorization Bearer token allowing access to the git repo over HTTP.
1363+
1364+
### `MB_REMOTE_SYNC_TYPE`
1365+
1366+
- Type: keyword
1367+
- Default: `production`
1368+
- [Configuration file name](./config-file): `remote-sync-type`
1369+
1370+
Git synchronization type - :development or :production.
1371+
1372+
### `MB_REMOTE_SYNC_URL`
1373+
1374+
- Type: string
1375+
- Default: `null`
1376+
- [Configuration file name](./config-file): `remote-sync-url`
1377+
1378+
The location of your git repository, e.g. https://github.com/acme-inco/metabase.git.
1379+
13161380
### `MB_REPORT_TIMEZONE`
13171381

13181382
- Type: string
@@ -1673,7 +1737,7 @@ When enabled, we show users a button to authenticate with Google to import data
16731737
- [Exported as](../installation-and-operation/serialization): `show-homepage-data`.
16741738
- [Configuration file name](./config-file): `show-homepage-data`
16751739

1676-
Whether or not to display data on the homepage. Admins might turn this off to direct users to better content than raw data.
1740+
Whether or not to display data on the homepage. Admins might turn this off in order to direct users to better content than raw data.
16771741

16781742
### `MB_SHOW_HOMEPAGE_XRAYS`
16791743

@@ -2135,7 +2199,7 @@ Type: integer<br>
21352199
Default: `600000`<br>
21362200
Since: v35.0
21372201

2138-
Timeout of Jetty async threads, defined in milliseconds. The default is 10 minutes. Few things might reach that timeout, since they return some type of data before, but things like CSV downloads might.
2202+
Timeout of Jetty async threads, defined in milliseconds. The default is 10 minutes. Very few things might reach that timeout, since they return some type of data before, but things like CSV downloads might.
21392203

21402204
### `MB_JETTY_DAEMON`
21412205

_docs/v0.57/data-modeling/model-persistence.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,22 @@ layout: new-docs
1111

1212
# Model persistence
1313

14-
> Currently available for PostgreSQL, MySQL, and Redshift.
15-
1614
Metabase can persist the results of your models so that your models (and the questions based on those models) load faster.
1715

1816
Metabase will store model results in tables in a bespoke schema in your data warehouse (not the Metabase application database). When people ask questions based on your models, Metabase will use the tables with the stored results instead of re-running the model's query.
1917

2018
> Model persistence doesn't work with [row and column security](../permissions/row-and-column-security) or [impersonation](../permissions/impersonation).
2119
20+
## Databases that support model persistence
21+
22+
Currently, model persistence is only available for the following databases:
23+
24+
- PostgreSQL
25+
- MySQL
26+
- Redshift
27+
28+
Model persistence doesn't work with [row and column security](../permissions/row-and-column-security) or [impersonation](../permissions/impersonation).
29+
2230
## Turn on model persistence in Metabase
2331

2432
To persist models for faster loading, you'll need to turn on model persistence for:

_docs/v0.57/embedding/sdk/dashboards.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ If you want to replace the existing menu with your own component, you can do so
136136
{% include_file "{{ dirname }}/snippets/dashboards/plugins.tsx" snippet="example-custom-actions-menu" %}
137137
```
138138

139+
### `mapQuestionClickActions`
140+
141+
You can customize what happens when people click on a data point on a dashboard with the `mapQuestionClickActions` plugin. See [mapQuestionClickActions](./questions#mapquestionclickactions).
142+
139143
## Creating dashboards
140144

141145
Creating a dashboard could be done with `useCreateDashboardApi` hook or `CreateDashboardModal` component.

_docs/v0.57/embedding/sdk/plugins.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,43 @@ To use a plugin on a per-component basis, pass the plugin as a prop to the compo
3131
{% include_file "{{ dirname }}/snippets/plugins/component-plugins.tsx" snippet="example" %}
3232
```
3333

34+
## `handleLink`
35+
36+
To customize what happens when people click a link in your embedded questions and dashboards, use the global plugin `handleLink`:
37+
38+
```typescript
39+
export default function App() {
40+
const navigate = useNavigate(); // coming from whatever routing lib you're using
41+
42+
const plugins = {
43+
handleLink: (urlString: string) => {
44+
const url = new URL(urlString, window.location.origin);
45+
const isInternal = url.origin === window.location.origin;
46+
if (isInternal) {
47+
// client side navigation
48+
navigate(url.pathname + url.search + url.hash);
49+
50+
return { handled: true }; // prevent default navigation
51+
}
52+
return { handled: false }; // let the sdk do the default behavior
53+
},
54+
};
55+
56+
return (
57+
<MetabaseProvider authConfig={authConfig} pluginsConfig={plugins}>
58+
<nav style={{ display: "flex", gap: 12, padding: 12 }}>
59+
<Link to="/">Home</Link>
60+
<Link to="/question">Question</Link>
61+
<Link to="/about">About</Link>
62+
</nav>
63+
<div style={{ padding: 12 }}>
64+
<Outlet />
65+
</div>
66+
</MetabaseProvider>
67+
);
68+
}
69+
```
70+
3471
## Further reading
3572

3673
- [Interactive question plugins](./questions#interactive-question-plugins)

_docs/v0.57/embedding/sdk/questions.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,27 @@ You can use [plugins](./plugins) to add custom functionality to your questions.
131131

132132
### `mapQuestionClickActions`
133133

134-
This plugin allows you to add custom actions to the click-through menu of an interactive question. You can add and
135-
customize the appearance and behavior of the custom actions.
134+
When people click on a data point in the embedded interactive chart, Metabase shows them a menu of actions by default. The plugin `mapQuestionClickActions` allows you to customize this behavior. You can choose to:
135+
136+
- Open the default Metabase menu.
137+
- Add custom actions to that click-through menu.
138+
- Perform immediate action without opening a menu.
139+
140+
Use `mapQuestionClickActions` globally at the provider level, or on individual `InteractiveQuestion` or `InteractiveDashboard` components. For more on provider scope, see [Plugins](./plugins)
141+
142+
The example below shows all the options for click action behavior. This example will:
143+
144+
- Open a menu with custom actions when "Last Name" column is clicked.
145+
- Perform an immediate action (show an alert) when the "Plan" column is clicked.
146+
- Shows the default menu (available as `clickActions`) in all other cases.
147+
148+
The behavior is determined by what `mapQuestionClickActions` returns: array of actions to open a menu, or a single action to trigger an immediate action.
149+
150+
```typescript
151+
{% include_file "{{ dirname }}/snippets/questions/interactive-question-click-actions.tsx" snippet="example" %}
152+
```
153+
154+
You can also customize the appearance of custom actions in the click menu. The example below shows an example of a click menu with default actions, a custom action, and a custom action with customized appearance:
136155

137156
```typescript
138157
{% include_file "{{ dirname }}/snippets/questions/interactive-question-plugins.tsx" snippet="example" %}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import {
2+
defineMetabaseAuthConfig,
3+
InteractiveQuestion,
4+
MetabaseProvider,
5+
} from "@metabase/embedding-sdk-react";
6+
7+
const authConfig = defineMetabaseAuthConfig({
8+
metabaseInstanceUrl: "http://localhost:3000",
9+
});
10+
11+
const Example = () => {
12+
return (
13+
// [<snippet example>]
14+
<MetabaseProvider
15+
authConfig={authConfig}
16+
pluginsConfig={{
17+
mapQuestionClickActions: (clickActions, clicked) => {
18+
if (clicked?.column?.display_name === "Last Name") {
19+
// This adds a custom action to the menu when clicked on on "Last Name" column
20+
return [
21+
...clickActions,
22+
{
23+
buttonType: "horizontal",
24+
name: "custom",
25+
title: "This is the Last Name column",
26+
onClick: () => alert("You clicked the Last Name column!"),
27+
},
28+
];
29+
}
30+
31+
if (clicked?.column?.display_name === "Plan") {
32+
// This performs an immediate action on "Plan" column instead of opening the menu
33+
return {
34+
onClick: () => alert("You clicked the Plan column!"),
35+
};
36+
}
37+
// default behavior (open Metabase's default click menu) on other columns
38+
return clickActions;
39+
},
40+
}}
41+
>
42+
<InteractiveQuestion questionId={1} />
43+
</MetabaseProvider>
44+
);
45+
// [<endsnippet example>]
46+
};

0 commit comments

Comments
 (0)