These are the docs for the Metabase master branch. Some features documented here may not yet be available in the latest release. Check out the docs for the latest version, Metabase v0.55.

Upgrading Metabase and the Embedded analytics SDK

Here’s a basic overview of the steps you’ll want to take when upgrading your SDK.

1. Read the release post and changelog for both Metabase and the Embedded analytics SDK

Check for any relevant changes, especially breaking changes that require you to update your application’s code. If there are breaking changes, we’ll have docs that’ll walk you through what changes you’ll need to make and why.

2. Test the upgrade

When upgrading to a new major version, you’ll want to upgrade both Metabase and the SDK version in parallel, as having Metabase and the SDK major versions out of sync can cause errors.

Spin up the new version of Metabase for testing

You can do this locally or in a dev instance. If your testing setup involves a lot of test user accounts, getting a development instance could be more cost-effective.

See upgrading Metabase.

Upgrade the SDK with npm or yarn

You’ll want to test the changes locally first, as there may be breaking changes that require you to upgrade your application code.

Check out a new branch in your application and install the next stable version, either with npm or yarn:

Via npm:

npm install @metabase/embedding-sdk-react@{next-major-version-number}-stable

For example, if you were upgrading to version 55 of the SDK:

npm install @metabase/embedding-sdk-react@55-stable

If you’re using yarn:

yarn add @metabase/embedding-sdk-react@{next-major-version-number}-stable

See more on SDK versions.

If there are breaking changes, make the necessary changes to your application code

Breaking changes are rare, but if you do need to make changes, we’ll mention it in the release notes for the new major version and have docs that walk you through the changes.

Update or add tests for any application code changes that you make.

Deploy to your staging environment

Before deploying your app to your staging environment, make sure you’ve tested your app locally (manually, as well as running any automated tests).

If all goes well with your local tests, deploy to your staging environment. Check that the Metabase embeds in your staging app are still working as expected, and perform any other testing you normally do with your application with respect to your embedded analytics.

3. Deploy to production

If everything is working in staging, you’re ready to deploy to production.

Be sure to deploy your application changes and upgrade your Metabase in parallel so that the SDK version and the Metabase version stay in sync.

If your instance is on Metabase Cloud, you’ll need to request an upgrade

If you’re on Metabase Cloud, your instance version is pinned, so you’ll need to request an upgrade by contacting support.

We’ll coordinate with you so that your instance is upgraded when you deploy the changes to your application.

Read docs for other versions of Metabase.

Was this helpful?

Thanks for your feedback!
Want to improve these docs? Propose a change.