Repository navigation
Commit f2c1ef0
committed
feat(Flag Dependency): Evaluate flags that depend on other flags
Port flagsmith-engine's flag dependency support: segment conditions on
`$.flags.<feature>.enabled`, `.value` and `.variant` read the evaluated
result of another flag, resolved lazily and transitively. Flags caught in
a dependency cycle are served with reason `ERROR; code=CIRCULAR_DEPENDENCY`,
and client-supplied `$.flags` are ignored.
Flag results now carry the selected multivariate `variant`, and engine-test-data
is bumped to v3.11.0, the first release with flag dependency cases.
Generated with [Linear](https://linear.app/flagsmith/agent-session/5657b1da-28c2-4081-a075-cae660cc325b)
Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>1 parent 773fb3e commit f2c1ef0
4 files changed
Lines changed: 286 additions & 65 deletions
File tree
- src
- main/java/com/flagsmith/flagengine
- segments
- test/java/com/flagsmith/flagengine
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
0 commit comments