Views are available to customers on select plansViews are only available to customers on select plans. To learn more, read about our pricing. To upgrade your plan, contact Sales.
About linking applications to views
When you link an application to a view, LaunchDarkly compares the flags in the view with the flags that the application’s SDK evaluates. You can use this comparison to find flags the application evaluates that are missing from the view, and flags in the view that the application has not evaluated recently. This is most useful when the view filters an SDK key payload. An application that connects with a filtered SDK key receives only the resources in the views associated with that key. Linking the application to the view helps you confirm that the payload contains every flag the application needs. To learn more, read Filtered SDK payloads. You can link one application to each view. Linking or unlinking an application does not add or remove any flags from the view. Flags change only when you link or remove them, or when you turn on automatic linking.Prerequisites
To link an application to a view, you need:- A role that allows the
updateViewaction for the view. To add or remove flags, the role must also allow thelinkFlagToVieworunlinkFlagFromViewaction. To learn more, read View actions. - An application in the same project that has evaluated flags. To learn more, read Applications.
Link an application to a view
To link an application to a view:- Click the gear icon in the left sidebar. The settings page opens.
- Click Views. The views list appears.
- Click the view you want to link an application to.
- Click the Settings tab.
- Click the Select an application menu in the “Application” section and choose an application.
- Click Save. An “Application linked” message appears.
Remove an application from a view
To remove an application from a view:- Open the view’s Settings tab.
- Click the application menu in the “Application” section.
- Select Remove application.
- Click Save.
Review evaluated and unevaluated flags
After you link an application, the “Application” section shows two counts:- Evaluated flags: The flags that the application evaluated in the last 30 days. If some of these flags are not in the view, the count shows how many are missing.
- Unevaluated flags: The flags in the view that the application has not evaluated in the last 30 days.
Link missing flags
To link flags that the application evaluates but that are missing from the view:- Open the view’s Settings tab.
- Click Evaluated flags in the “Application” section. A panel opens with the flags missing from the view selected.
- (Optional) Uncheck any flags that you do not want to link.
- Click Link flags. The panel closes and the counts update.
Remove unevaluated flags
To remove flags from the view that the application has not evaluated:- Open the view’s Settings tab.
- Click Unevaluated flags in the “Application” section. A panel opens.
- Check the flags you want to remove.
- Click Remove from view. A confirmation dialog appears.
- Confirm the removal.
Automatically link evaluated flags
You can have LaunchDarkly link flags to the view automatically as the application evaluates them. Automatic linking only adds flags. It never removes flags from the view. To turn on automatic linking:- Open the view’s Settings tab.
- Turn on the Auto-link evaluated flags switch in the “Application” section.
- Click Save. A “Review before updating” dialog appears and lists the SDK keys whose payloads change, with the number of flags each key gains.
- Click Update. An “Automatic linking enabled” message appears.