Skip to Content

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.
  1. Go to Settings > Environments and select Set up environments. If two workspaces differ only by a stage word, such as Store analytics Dev and Store analytics Production, the page offers to link them: select Link these workspaces and the editor opens filled in.

    Environments settings page asking to link Store analytics Dev and Store analytics Production, with the Link these workspaces button highlighted.
    Databrain spots workspaces that look like stages of one product.
  2. Enter a Product name, for example Store analytics.

    Set up environments panel with the Product name field, filled in with Store analytics, highlighted.
    The product name groups the workspaces.
  3. 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.

    Two steps in the editor: Dev on workspace Store analytics Dev, and Step 2, live for customers, Production on Store analytics Production, highlighted.
    Step 2 is the environment your customers see.
  4. 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_staging to gold. Leave it empty when the names are the same.

    Schema mapping from Dev section open under the Production step, with the Add schema pair button and the hint Same schema names in both? Leave this empty.
    Schema pairs are only needed when the stages use different schema names.
  5. 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.

Environments page listing Store analytics with Dev on Store analytics Dev, an arrow, and Production marked Live for customers, plus the Saved message.
Dev promotes to Production, which is live for customers.

Promote a dashboard

Link Dev and Production, promote a dashboard, then roll it back (70 seconds).
  1. Go to Home and open the workspace you edit in. Each dashboard shows an environment pill, for example Dev Not promoted.

  2. Hover the pill and select Promote to the next environment. You can also select Promote to next to the pill.

    Dashboard list on Home with the Dev Not promoted pill open, showing Dev, Where you edit, Production, Not promoted yet, and the Promote to Production button highlighted.
    The pill lists each environment and its live release.
  3. 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.

    Promote to Production panel: First release notice, What changes listing four new charts, and the Checks on Production data result highlighted.
    Each changed chart runs on Production data before you publish.
  4. Optional: under Preview as a client, enter a Client id and select Preview. You see that client’s rows for each chart.

    Preview as a client with Acme Logistics entered and Preview highlighted, then the preview for Acme Logistics with Seats sold and Revenue by region rows.
    Preview shows only the rows of the client you enter.
  5. Optional: enter a Release message. Open Add a release tag to add a Tag, for example v1.0.0.

  6. Select Publish to the environment.

    Release message First release of Revenue overview, tag v1.0.0, and the Publish to Production button highlighted.
    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.

Environment pill open on Home showing Dev Same as Production, with the Production row and its live release id highlighted.
Production shows the id of its live release.

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

  1. Hover the environment pill and select History.

    Environment pill open on Home with the History button highlighted.
    History opens the releases of the furthest environment the dashboard reached.
  2. On an older release, select Roll back.

    History in Production listing Add region filter v1.1.0 as Live and First release of Revenue overview v1.0.0 with its Roll back button highlighted.
    The newest release is Live; each older one has Roll back.
  3. Check What changes and Checks on the environment’s data, then select Roll back and the environment name.

    Roll back Revenue overview in Production to release f08de3f, with What changes, Checks on Production data and the Roll back Production button highlighted.
    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.

History in Production with Roll back to an earlier release as the new Live release above Add region filter and First release of Revenue overview.
The roll back is the new Live release; the older releases stay.

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.

On this page