Skip to content

Conversation

@beeme1mr
Copy link
Member

This PR

  • improve targeting key check in fractional operator

Notes

The old logic was always truthy. This corrects the behavior and brings it in line with Java.

https://github.com/open-feature/java-sdk-contrib/blob/main/providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd/resolver/process/targeting/Fractional.java#L43

How to test

Run the jest test suite. The test added this PR failed before the fix.

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
@beeme1mr beeme1mr requested a review from a team as a code owner August 29, 2024 21:16
Copy link
Member

@toddbaert toddbaert left a comment

Choose a reason for hiding this comment

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

Nice catch.

@beeme1mr beeme1mr merged commit 7d82649 into main Aug 30, 2024
@beeme1mr beeme1mr deleted the fix-fractional-missing-targeting-key branch August 30, 2024 12:53
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.

3 participants