Requesting approvals
Read time: 4 minutes
Last edited: May 01, 2024
Approvals is available to customers on a Pro or Enterprise plan. To learn more, read about our pricing. To upgrade your plan, contact Sales.
Requiring approvals by environment is available only to customers on an Enterprise plan. To learn more, read Configuring approvals by environment.
Overview
This topic explains how to create and delete approval requests.
Create an approval request
You can request approval on changes to a flag's targeting or variations from any member or team within your LaunchDarkly organization. You can do this any time after you create a flag. Members that do not have permission to approve requests can still view the change.
Here's how:
-
Make a change to any flag.
-
Click the dropdown icon in the Review and save button. The additional actions menu appears:
If your environment requires approvals, Review and request approval is the default option. To learn more, read Configuring approvals for an environment.
- Click "Request approval." The "Save changes" dialog appears.
- Review and confirm the changes displayed in the dialog.
- Enter a Reason to add details that help your reviewers understand the changes you made.
- Choose one or more reviewers from the Reviewers menu.
- Members and teams with permission to review approval requests appear in the top section of the menu.
- Members and teams that can only view approval requests appear in the bottom section of the menu. If you add a member or team from this list, they will be notified of the approval request, but cannot approve it.
- Click Request approval. The approval request appears.
Reviewers receive an email, an in-app inbox notification, and, if they use the LaunchDarkly Slack or Microsoft Teams app, a Slack or Teams notification asking them to approve your flag changes.
The flag's Targeting tab also updates with a number next to the Pending changes icon to indicate that there are pending changes waiting for review:
You can request approvals for changes to a flag's targeting or variations only. You cannot request approval on other flag changes, such as updates to a flag's settings.
You can also use the REST API: Create approval request for a flag
Required approvals
Enterprise customers can require approval requests for specific environments.
If your environment requires approvals, then when you make a flag change, Review and request approval is the default option. If a team member has the bypassRequiredApproval
custom role action, they are not required to request approval. Instead, they have the option to Save changes.
When you copy flag settings between environments, if the environment you're copying changes to requires approval, then Review and request approval is the default option. To learn more, read Compare and copy flag settings between two environments and Configuring approvals for an environment.
You can also use the REST API: Create approval request to copy flag configurations across environments
Delete an approval request
You may delete your request for changes to a flag at any point before the changes are applied. You can do this in several ways:
- from the Approvals dashboard, or
- from the "Pending changes" panel, or
- from the approval request.
You can also use the REST API: Delete approval request for a flag
Delete an approval request from the Approvals dashboard
To delete approval requests from the Approvals dashboard:
- Click Approvals in the left sidenav. The Approvals dashboard opens.
- Find the request you wish to delete and click the overflow menu.
- Choose "Delete request." A confirmation dialog appears.
- Type the flag's key to confirm.
- Click Delete. The request is deleted.
Delete an approval request from the "Pending changes" panel
To delete approval requests from a flag's "Pending changes" panel:
- Navigate to the flag's Targeting or Variations tab and click the Pending changes icon. The "Pending changes" panel appears.
- Find the change you wish to delete and click the overflow menu. Additional options appear:
- Choose "Delete." A confirmation dialog appears.
- Type the flag's name or key to confirm.
- Click Delete. The request is deleted.
Delete an approval request from the request details screen
To delete an approval request from the request details screen:
- Navigate to the request details screen from the Approvals dashboard, flag, or approval notification.
- Click the overflow menu and choose "Delete request." A confirmation dialog appears.
- Enter the flag's name or key to confirm.
- Click Delete request. The request is deleted.