Skip to content

Commit f2c1ef0

Browse files
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

‎.gitmodules‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[submodule "src/test/java/com/flagsmith/flagengine/enginetestdata"]
22
path = src/test/java/com/flagsmith/flagengine/enginetestdata
33
url = git@github.com:Flagsmith/engine-test-data.git
4-
branch = v3.7.0
4+
branch = v3.11.0

0 commit comments

Comments
 (0)