Creating views

This feature is for Early Access Program customers only

Views are under active development and are only available to members of LaunchDarkly’s Early Access Program (EAP). To request access to this feature, contact your LaunchDarkly account manager.

Overview

This topic explains how to create views and link resources to those views. A given resource, such as a flag, can be linked to more than one view.

Create a view

To create a new view:

  1. Click the project dropdown. The project menu appears:

    The project menu.

    The project menu.
  2. Select Project settings.

  3. Select Views. The Views list appears.

  4. Click Create view. The “Create view” dialog appears.

  5. Enter a unique, human-readable Name for the view.

  6. (Optional) Update the view Key. A suggested key auto-populates from the name you enter, but you can customize it if you wish.

  7. (Optional) Enter a Description.

  8. (Optional) Click Add tags. Enter a tag name to search for an existing tag or create a new one with that name.

  9. (Optional) Click Choose maintainer to set the maintainer of the view.

  10. Click Create & link flags. The “Link flags” dialog appears.

  11. Check the flags that you want to include in the view. You can add any segments after you finish creating the view.

  12. Click Update linked flags.

You can also create a view and then link flags and segments later. To create a view without linking any resources, follow steps 1-9 in the procedure above, and then click Create view & close.

After you create a view, you can use it in role policies to restrict access, for instance, to restrict access to sets of flags. For an example of using a view in a role policy, read Example: View-specific permissions.

You can create up to 300 views per project.

You can link resources, such as flags or segments, to an existing view when you create the resource. You can also link resources to existing views at any time, from the Views list.

To link a flag or segment to a view from the flag or segment details page:

  1. From the detail page, find “Views” in the right sidebar.
  2. Click add view.
  3. Check the checkbox next to the views that you want to link the flag or segment to.

To link resources, such as flags or segments, to an existing view from the Views list:

  1. From Project settings, select Views. The Views list appears.
  2. Find the view you want to link resource to.
  3. Click the overflow menu for the view.
  4. Select Update linked resources. The “Link resources” tab appears.
  5. Click Add. Select the Resource type, such as flag or segment.
  6. Check the resources that you want to include in the view.
  7. Click Add [resource].