Incorrect `reason` used for environment default flags
@bakirFS is already working on this.
Since Sep 9, 2026.
Assessment
This issue has not been assessed yet.
Description
Currently the engine emits DEFAULT whenever the evaluation result is the environment default flag.
This should be:
STATICif there are no targeting rules configured for the featureDEFAULTif there are targeting rules configured, but the evaluation doesn't match them
i.e. if there are segment overrides for a feature, but they don't match the identity we are evaluating for, then return DEFAULT. If there are no segment overrides, return STATIC.
See Resolution Reason.
Acceptance Criteria:
- Change implemented in this repository and tested
- New version of engine released
- New engine version integrated into Flagsmith/flagsmith, Flagsmith/edge-api, Flagsmith/flagsmith-python-client, Flagsmith/edge-proxy
- Update
reasonlogic in Flagsmith/flagsmith-go-client
- Dominant language
- Python
- Stars
- 10
- Forks
- 5
- Avg merge
- 4d 8m
- Merged PRs (30d)
- 3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Flagsmith/flagsmith-engine
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Flagsmith/flagsmith-engine#340 ·
-
Dependency Dashboard Open
Difficulty 1/5 Under an hour Newbie friendliness 25/100
Flagsmith/flagsmith-engine#306 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
Flagsmith/flagsmith-engine#231 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 55/100
Flagsmith/flagsmith-engine#207 · 2 comments ·
-
bug
Flagsmith/flagsmith-engine#196 · 1 comment · 1 assignee ·
All issues in Flagsmith/flagsmith-engine
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100