feat: fractional enhancements#1501
Conversation
Signed-off-by: Lea Konvalinka <lea.konvalinka@dynatrace.com> chore(main): release 3.3.0 (open-feature#353) Signed-off-by: OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com> Signed-off-by: Lea Konvalinka <lea.konvalinka@dynatrace.com>
Signed-off-by: Lea Konvalinka <lea.konvalinka@dynatrace.com>
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request significantly enhances the fractional targeting rule in flagd-core. Key improvements include expanded variant type support (now allowing strings, numbers, booleans, and null), improved weight handling with validation for integer weights, clamping of negative weights to zero, and a check to prevent total weight overflow using Math.MaxInt32. The bucketing calculation now uses BigInt for enhanced precision with large integer weights, enabling sub-percent granularity. Additionally, the rule now supports single-bucket configurations. Extensive new test cases have been added to cover these new capabilities and edge cases. E2E tests have been updated to temporarily exclude new fractional features, indicating ongoing development. The flagd-core test harness subproject has also been updated. There is no feedback to provide.
ac7a5cb to
29736e8
Compare
This PR
Related Issues
#1493 and #1492
Notes
Follow-up Tasks
Remove the exclusion of
@fractional-v2andfractional-nestedfrom RPC e2e tests once flagd supports these changesHow to test
new unit tests and gherkin (e2e) tests