Skip to content

feat(Engine): Report the STATIC reason for flags without targeting - #242

Merged
emyller merged 2 commits into
linear/sdk-3-enable-flag-dependency-in-the-go-server-side-sdk-3091from
feat/sdk-3-engine-test-data-3.12.1
Nov 2, 2026
Merged

emyller merged 2 commits into
linear/sdk-3-enable-flag-dependency-in-the-go-server-side-sdk-3091from
feat/sdk-3-engine-test-data-3.12.1

Conversation

@emyller

@emyller emyller commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Local evaluation reports DEFAULT for every flag served its environment default, unlike flagsmith-engine since #347 and the Rust engine.

Stacked on #238. Contributes to SDK-3. Tested by engine-test-data v3.12.1; supersedes #227.

Changes

  • Flags served their environment default report STATIC when no segment overrides the feature, and DEFAULT when segments override it but none matched.
  • CI runs engine-test-data v3.12.1.

Flags without targeting change reason from DEFAULT to STATIC, including environment flags.

🤖 Generated with Claude Code

A flag evaluated to its environment default now reports `STATIC` when no segment overrides its feature, and `DEFAULT` when segments override it but none matched, as flagsmith-engine#347 and the Rust engine do.

engine-test-data moves to v3.12.1, which expects the new reason.

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 2, 2026 19:58
@emyller
emyller requested review from khvn26 and removed request for a team November 2, 2026 19:58
@linear-code

linear-code Bot commented Nov 2, 2026

Copy link
Copy Markdown

SDK-3

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 3ebd10ad-65d6-4066-a31e-5bbc815c4eef

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codspeed

codspeed Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 15 untouched benchmarks


Comparing feat/sdk-3-engine-test-data-3.12.1 (58d76b0) with linear/sdk-3-enable-flag-dependency-in-the-go-server-side-sdk-3091 (f4e5014)

Open in CodSpeed

…nvironment

Collecting every segment override name, identity overrides included, on each evaluation made identity flags 13–17% slower. The environment mapper now collects them once into `EngineEvaluationContext.TargetedFeatureNames`, and the engine only computes them for contexts that lack them.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@emyller
emyller merged commit cf4ab38 into linear/sdk-3-enable-flag-dependency-in-the-go-server-side-sdk-3091 Nov 2, 2026
7 checks passed
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.

1 participant