Flag Dependencies
Overview
Suppose you have a feature flag coffee_machine, but it needs another feature hamster_power_grid turned on so it can be evaluated as enabled. Flag dependencies allow for establishing prerequisites between flags.

When the prerequisite feature is disabled, the dependent feature is also evaluated as disabled. Flag value will be served from the environment default.
Feature prerequisites take priority over segment overrides. Identity overrides still take absolute precedence. Prerequisite flags overridden by segment or identity overrides will satisfy dependent flags.
Flag dependencies are configured per-environment.

Adding a prerequisite to a feature flag
- Go to the Features list page.
- Make sure you select the environment on the left.
- Select any feature in the list.
- Visit the Dependencies tab.
- Click Add prerequisite, and choose from the list the prerequisite feature.

A feature can have as many prerequisites as necessary. We do restrict:
- Nesting levels - dependencies only go one level deep.
- Cycles - circular dependencies are not allowed.
Removing a prerequisite
Just click the 🗑️ icon next to the prerequisite feature you want to remove in the Dependencies tab.

Change requests
When Feature change requests are enabled, changes to feature prerequisites will also require approval.
