-
Notifications
You must be signed in to change notification settings - Fork 41
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
feat: Change fractional custom op from percentage-based to relative weighting. #828 #833
feat: Change fractional custom op from percentage-based to relative weighting. #828 #833
Conversation
i am not sure that my change caused the ci to fail. maybe i misread the log, but could some body of the maintainers restart the build |
68f77f8
to
8f8e93f
Compare
…eighting. open-feature#828 Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
8f8e93f
to
ddbcc84
Compare
okay i am realizing that the e2e tests are failing, i need to investigate, what might be the issue - do i maybe need to update some dependencies - or do you see an error in my implementation? |
I'll try to debug locally and see. It's possible you are just very unlucky though and this is unrelated, because the assert that's failing doesn't seem to do with fractional at all... but these tests are usually very reliable and not flacky so 🤷 I will re-run to double-check |
It's the assertion in |
If you rebase on or merge main the e2e suite should work now. See: #834 |
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
5cbf293
to
0ab0e71
Compare
relates also to: open-feature/flagd#1282 - for tracking purpose in the main ticket |
.../java/dev/openfeature/contrib/providers/flagd/resolver/process/targeting/FractionalTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the nit, looks good 🙌
…s/flagd/resolver/process/targeting/FractionalTest.java Co-authored-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com> Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
.../java/dev/openfeature/contrib/providers/flagd/resolver/process/targeting/FractionalTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but I'd suggest to add the example reported in #828 for testing purpose to validate that if we have a 50/50 (or 25/25/25/25) it's equivalent to 1/1 (or 1/1/1/1)
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
@thisthat i modified the tests, and added some more, each test is now an own json file, with a rule and an expected result, this allows us to easier add test cases in the future - i hope this is fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @aepfli
Related Issues
Fixes #828