• Home
  • Integrations
  • SDKs
  • Guides
  • API docs
No results for ""
EXPAND ALL

EDIT ON GITHUB

Comparing and copying flag settings across environments

Read time: 1 minute
Last edited: Oct 21, 2021
Copying flag settings is an Enterprise feature

Copying flag settings is available to customers on an Enterprise plan. To learn more, read about our pricing. To upgrade your plan, contact Sales.

Overview

This topic explains how to use the Compare button on the dashboard to view and copy flag configurations across different environments.

Comparing and copying flags across environments

You can compare and copy flag configurations between two environments with the Compare flags feature. To compare a flag, it must have at least two variations, one in each of the environments you wish to compare.

To compare and copy a flag:

  1. Navigate to the flags dashboard and click the overflow menu.
  2. Click Compare flags. The Compare flags screen appears.

The dashboard with the Compare flags button called out.
The dashboard with the Compare flags button called out.

  1. Choose two environments from the dropdown. Flags appear below the dropdown indicating the differences between the two variations:

The Compare Flags screen with two environments selected.
The Compare Flags screen with two environments selected.

  1. Click a flag's row to see more details about the two variations. This view is similar to a code diff. Current flag configuration appears on the left, and on the right, the proposed flag configuration. The proposed flag configuration is the flag variation from the source environment.
  2. Select checkboxes to choose which settings you would like to copy over from the source environment:

The comparison screen with checkboxes called out.
The comparison screen with checkboxes called out.

  1. Click Copy settings to save the changes. You may optionally select a drop down to request approval from another member before the changes take effect.
  2. If the environment you're copying changes to requires approval, you will be prompted to request approval from another member. To learn more, read Approval workflows.
Restrictions on custom targeting rules

You can copy all custom targeting rules simultaneously with the Select all checkbox. However, if one of your rules references a segment that does not exist in the target environment, you cannot copy any targeting rules. You will still be able to copy Targeting state, Prerequisites, Individual user targets, Default rule, and fallback rule ("If targeting is off, serve").