fix: allow single entry in fractional operator#1935
Merged
toddbaert merged 3 commits intoopen-feature:mainfrom Apr 10, 2026
Merged
fix: allow single entry in fractional operator#1935toddbaert merged 3 commits intoopen-feature:mainfrom
toddbaert merged 3 commits intoopen-feature:mainfrom
Conversation
✅ Deploy Preview for polite-licorice-3db33c canceled.
|
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the fractional evaluation logic to support single-entry configurations, specifically by changing the minimum required length for the valuesArray from 2 to 1 in parseFractionalEvaluationData. It also includes new test cases to validate this behavior for various single-entry scenarios. The only feedback is to refine the error message for an invalid valuesArray to be more precise, suggesting 'fractional evaluation data must contain at least one distribution' instead of 'fractional evaluation data is empty'.
toddbaert
approved these changes
Apr 10, 2026
Signed-off-by: Lea Konvalinka <lea.konvalinka@dynatrace.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
b760922 to
944abf3
Compare
|
Merged
toddbaert
pushed a commit
that referenced
this pull request
Apr 14, 2026
🤖 I have created a release *beep* *boop* --- <details><summary>flagd: 0.15.3</summary> ## [0.15.3](flagd/v0.15.2...flagd/v0.15.3) (2026-04-14) ### 🐛 Bug Fixes * web and cli docs do not mention s3 ([#1941](#1941)) ([49ff1cf](49ff1cf)) </details> <details><summary>core: 0.15.3</summary> ## [0.15.3](core/v0.15.2...core/v0.15.3) (2026-04-14) ### 🐛 Bug Fixes * allow single entry in fractional operator ([#1935](#1935)) ([5fa86c6](5fa86c6)) * web and cli docs do not mention s3 ([#1941](#1941)) ([49ff1cf](49ff1cf)) ### ✨ New Features * metadata support in the kubernetes_sync ([#1905](#1905)) ([f8173a4](f8173a4)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Signed-off-by: OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR
Related Issues
#1924
Notes
Follow-up Tasks
How to test