Skip to content

fix: strategy evaluation is OR based.#370

Merged
chriswk merged 3 commits into
mainfrom
369-adding-the-same-custom-strategy-multiple-times-on-a-feature-flag-does-not-evaluate-all-instances-last-one-wins
Feb 19, 2026
Merged

fix: strategy evaluation is OR based.#370
chriswk merged 3 commits into
mainfrom
369-adding-the-same-custom-strategy-multiple-times-on-a-feature-flag-does-not-evaluate-all-instances-last-one-wins

Conversation

@chriswk
Copy link
Copy Markdown
Member

@chriswk chriswk commented Feb 19, 2026

Due to a bug in Yggdrasil, multiple instances of the same custom strategy overwrote each other so last one won. After this bug fix, Yggdrasil again evaluates all custom strategies on an OR base, so if any are true, the flag will be true.

This PR also adds a test testing just this case in order to prevent a regression in the future.

fixes: #369

Due to a bug in Yggdrasil, multiple instances of the same custom
strategy overwrote each other so last one won. After this bug fix,
Yggdrasil again evaluates all custom strategies on an OR base, so if any
are true, the flag will be true

fixes: #369
@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Feb 19, 2026

Pull Request Test Coverage Report for Build 22174764844

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.09%) to 79.775%

Totals Coverage Status
Change from base Build 21820433852: 0.09%
Covered Lines: 3508
Relevant Lines: 4244

💛 - Coveralls

@chriswk chriswk moved this from New to In Progress in Issues and PRs Feb 19, 2026
Copy link
Copy Markdown
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

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

G

@github-project-automation github-project-automation Bot moved this from In Progress to Approved PRs in Issues and PRs Feb 19, 2026
@chriswk chriswk merged commit 9f4779b into main Feb 19, 2026
9 checks passed
@chriswk chriswk deleted the 369-adding-the-same-custom-strategy-multiple-times-on-a-feature-flag-does-not-evaluate-all-instances-last-one-wins branch February 19, 2026 09:17
@github-project-automation github-project-automation Bot moved this from Approved PRs to Done in Issues and PRs Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Adding the same custom strategy multiple times on a feature flag does not evaluate all instances (last one wins)

4 participants