-
Notifications
You must be signed in to change notification settings - Fork 74
feat!: fractional bucketing improvements #1740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
toddbaert
merged 32 commits into
open-feature:main
from
chrfwow:high-resolution-fractional
Apr 1, 2026
Merged
Changes from 7 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
ce6fab9
high resolution fractional
chrfwow d42a51d
high resolution fractional
chrfwow 411d642
high resolution fractional
chrfwow 9586f8c
high resolution fractional
chrfwow 1ae9e2f
high resolution fractional
chrfwow a14ed15
fix negative numbers
chrfwow c5f4e15
fix bucketing algo
chrfwow 195a836
fix bucketing algo
chrfwow 40c6ee7
fix bucketing algo
chrfwow f1a2ad1
fix bucketing algo
chrfwow 4fda79b
fix bucketing algo
chrfwow d1f4bdc
fix bucketing algo
chrfwow a78a6c6
fix bucketing algo
chrfwow 7295961
Merge branch 'main' into high-resolution-fractional
chrfwow 602238c
fix stuff
chrfwow 3eee949
fix stuff
chrfwow 6738b17
use byte buffer
chrfwow c8d7388
Merge branch 'main' into high-resolution-fractional
chrfwow de038b2
use fixed test bed
chrfwow 16cb01c
use fixed test bed
chrfwow 5413b01
remove arbitrary bucketing values
chrfwow a282617
fixup: update submodule
toddbaert ec3aec4
fixup: update exclusions
toddbaert b038afb
fixup: spotless
toddbaert 9fc8667
fixup: update sm
toddbaert ffda346
feat: add nested fractional support
toddbaert 3114c91
fixup: update flagd-schemas to json-schema-v0.2.14
toddbaert bb049b4
fixup: clamping impl consistency
toddbaert 93e295d
fixup: lint
toddbaert c141e14
fixup: update flagd-schemas to json-schema-v0.2.15
toddbaert 05a5ba9
fixup: update testbed, exclusions
toddbaert f266d27
Merge branch 'main' into high-resolution-fractional
toddbaert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
14 changes: 14 additions & 0 deletions
14
tools/flagd-core/src/test/resources/fractional/boolean.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "rule": [ | ||
| true, | ||
| [ | ||
| "blue", | ||
| 50 | ||
| ], | ||
| [ | ||
| "green", | ||
| 70 | ||
| ] | ||
| ], | ||
| "result": "blue" | ||
| } |
14 changes: 14 additions & 0 deletions
14
tools/flagd-core/src/test/resources/fractional/largeDouble.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "rule": [ | ||
| 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.9, | ||
| [ | ||
| "blue", | ||
| 50 | ||
| ], | ||
| [ | ||
| "green", | ||
| 70 | ||
| ] | ||
| ], | ||
| "result": "blue" | ||
| } |
14 changes: 14 additions & 0 deletions
14
tools/flagd-core/src/test/resources/fractional/largeInt.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "rule": [ | ||
| 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, | ||
| [ | ||
| "blue", | ||
| 50 | ||
| ], | ||
| [ | ||
| "green", | ||
| 70 | ||
| ] | ||
| ], | ||
| "result": "blue" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,5 +10,5 @@ | |
| 50 | ||
| ] | ||
| ], | ||
| "result": "blue" | ||
| "result": "red" | ||
|
toddbaert marked this conversation as resolved.
|
||
| } | ||
14 changes: 14 additions & 0 deletions
14
tools/flagd-core/src/test/resources/fractional/string.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "rule": [ | ||
| "some string", | ||
| [ | ||
| "blue", | ||
| 50 | ||
| ], | ||
| [ | ||
| "green", | ||
| 70 | ||
| ] | ||
| ], | ||
| "result": "blue" | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.