feat: Change fractional custom op from percentage-based to relative weighting.#91
Conversation
…eighting. Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #91 +/- ##
==========================================
+ Coverage 90.55% 92.45% +1.90%
==========================================
Files 8 12 +4
Lines 180 464 +284
==========================================
+ Hits 163 429 +266
- Misses 17 35 +18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
matthewelwell
left a comment
There was a problem hiding this comment.
I've added a few styling related comments, but this PR will also need additional test coverage.
I also find the logic quite difficult to follow. Can we try to avoid multiple nested if statements? And can we perhaps make the error logs more descriptive about why they are error cases?
I am working on adding further tests to the test harness. But i can also try to add here more tests. python, as you might have guessed, is not my strong suit. but i will try to adapt |
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
67b69cb to
05a8cca
Compare
+1 for this proposal. I had the same doubt when reviewing the PR. To be consistent, yes we should raise exceptions |
gruebel
left a comment
There was a problem hiding this comment.
nice work, added just some minor comments
…rovider/flagd/resolvers/process/custom_ops.py Co-authored-by: Anton Grübel <anton.gruebel@gmail.com> Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
…rovider/flagd/resolvers/process/custom_ops.py Co-authored-by: Anton Grübel <anton.gruebel@gmail.com> Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
48e44fd to
c0f4a55
Compare
|
@beeme1mr do you have any idea about the failing uploads to codecov? I thought we fixed that issue or is it something new? |
I'm not sure what's wrong. The logs indicate that the codecov secret isn't set but the configuration looks correct and it was working last week. |
…rovider/flagd/resolvers/process/custom_ops.py Co-authored-by: Matthew Elwell <mjelwell89@gmail.com> Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
460be94 to
06e7a5c
Compare
|
Any help for codecov is highly appreciated - it seems that this is the only reason the builds are failing |
|
done i am not sure if anything else is missing here ;) but please let me know |
relates: open-feature/flagd#1282