Skip to content

feat(Flag Dependency): Support $.flags context values in segment conditions - #202

Merged
emyller merged 1 commit into
mainfrom
feat/flag-dependency
Nov 4, 2026
Merged

emyller merged 1 commit into
mainfrom
feat/flag-dependency

Conversation

@emyller

@emyller emyller commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

The proxy ignores segments that target flags by other flags, and /flags applies segments that need an identity, so it serves different flags than Flagsmith.

Changes

  • /flags and /identities apply overrides of segments that depend on other flags.
  • /flags applies overrides of segments reading $.environment, and ignores segments that need an identity.
  • Bumps flagsmith-flag-engine to 11.1.1.

Closes #199

Review effort: 2/5

🤖 Generated with Claude Code

…nditions

Bump flagsmith-flag-engine to 11.1.1 so segments depending on other flags
resolve, and evaluate `/flags` with segments that need no identity.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@emyller
emyller requested a review from a team as a code owner November 3, 2026 22:25
@emyller
emyller requested review from khvn26 and removed request for a team November 3, 2026 22:26

@khvn26 khvn26 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a nit: I'd like us to return (and therefore test for) the reason field for both /flags and /identities, which I appreciate is out of scope for this PR.

@emyller

emyller commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

LGTM with a nit: I'd like us to return (and therefore test for) the reason field for both /flags and /identities, which I appreciate is out of scope for this PR.

Added to #204.

@emyller
emyller merged commit 04794ae into main Nov 4, 2026
3 checks passed
@emyller
emyller deleted the feat/flag-dependency branch November 4, 2026 16:54
emyller pushed a commit that referenced this pull request Nov 4, 2026
🤖 I have created a release *beep* *boop*
---


## [2.24.0](v2.23.0...v2.24.0) (2026-11-04)


### Features

* **Flag Dependency:** Support `$.flags` context values in segment conditions ([#202](#202)) ([04794ae](04794ae))
* **Flags:** Return the `reason` field for both `/flags` and `/identities` ([#205](#205)) ([40a9ea9](40a9ea9))
* Send Flagsmith-identifying User-Agent to the Flagsmith API ([#203](#203)) ([3182eac](3182eac))


### Dependency Updates

* Bump flagsmith-flag-engine to 11.0.0 ([#198](#198)) ([2612bfd](2612bfd))


### Other

* **CI:** pre-commit autoupdate ([#191](#191)) ([137f311](137f311))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support $.flags context values in segment conditions

2 participants