Organization
Promote dashboards between environments
Link workspaces as Dev, Staging and Production, then promote a dashboard one step at a time.
An environment group links 2 to 6 workspaces as stages of one product, for example Dev and Production. You change a dashboard in one stage, check it on the next stage’s data, and publish it there in place. Embeds, links and your customers’ own charts keep working.
Before you start
- You are an Admin.
- Your company has 2 or more workspaces. Every plan includes environments. On a self-hosted install, your licence must list it.
Link workspaces
-
Go to Settings > Environments and select Set up environments. If two workspaces differ only by a stage word, such as
Store analytics DevandStore analytics Production, the page offers to link them: select Link these workspaces and the editor opens filled in.
Databrain spots workspaces that look like stages of one product. -
Enter a Product name, for example
Store analytics.
The product name groups the workspaces. -
For each step, set the Environment name and pick its Workspace. Order runs top to bottom. The last step is live for customers. Use the arrows to reorder a step, or Add environment to add one, up to 6.

Step 2 is the environment your customers see. -
Optional: if schema names differ between stages, open Schema mapping from the earlier environment, select Add schema pair, and pair the names, for example
gold_stagingtogold. Leave it empty when the names are the same.
Schema pairs are only needed when the stages use different schema names. -
Select Save environments.
You see the product with its environments in order and the line Saved Store analytics. Next: open Home to promote a dashboard. Each workspace can be in one environment group only.

Promote a dashboard
-
Go to Home and open the workspace you edit in. Each dashboard shows an environment pill, for example Dev Not promoted.
-
Hover the pill and select Promote to the next environment. You can also select Promote to next to the pill.

The pill lists each environment and its live release. -
Review What changes and Checks on the next environment’s data. Every changed chart runs on that environment’s data. Publish stays off while a check fails.

Each changed chart runs on Production data before you publish. -
Optional: under Preview as a client, enter a Client id and select Preview. You see that client’s rows for each chart.

Preview shows only the rows of the client you enter. -
Optional: enter a Release message. Open Add a release tag to add a Tag, for example
v1.0.0. -
Select Publish to the environment.

The message and tag show in History.
You see Revenue overview is live in Production and Open dashboard in the environment. The pill now shows the live release id. The dashboard keeps its id, so embeds and links keep working.

Only the dashboard, its layout, filters and its author’s charts move. Each workspace keeps its own datasource, tenancy and embeds. Dashboards and charts made by your customers’ users are never changed.
Roll back
-
Hover the environment pill and select History.

History opens the releases of the furthest environment the dashboard reached. -
On an older release, select Roll back.

The newest release is Live; each older one has Roll back. -
Check What changes and Checks on the environment’s data, then select Roll back and the environment name.

Roll back runs the same checks as a promote.
Roll back adds a new release on top, so nothing is lost. You can roll forward again from History.

If something goes wrong
- An app filter would change. App filters decide which rows each client sees, so a promote cannot change them. Make the app filters the same in both workspaces.
- Fix the failed checks first. A chart failed on the next environment’s data. Checks on the environment names the chart and the fix.
- This dashboard changed since the review. Review it again, then publish.
- Edited here after the last release. Someone edited the live environment directly. The next promote replaces those edits. Make the change in the earlier environment instead.
- Environments need two workspaces. Create a second workspace first.