-
Notifications
You must be signed in to change notification settings - Fork 18
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. #91
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. |
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.
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?
...eature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/process/custom_ops.py
Outdated
Show resolved
Hide resolved
...eature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/process/custom_ops.py
Outdated
Show resolved
Hide resolved
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
...eature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/process/custom_ops.py
Outdated
Show resolved
Hide resolved
...eature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/process/custom_ops.py
Outdated
Show resolved
Hide resolved
...eature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/process/custom_ops.py
Outdated
Show resolved
Hide resolved
+1 for this proposal. I had the same doubt when reviewing the PR. To be consistent, yes we should raise exceptions |
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.
nice work, added just some minor comments
...eature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/process/custom_ops.py
Outdated
Show resolved
Hide resolved
...eature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/process/custom_ops.py
Outdated
Show resolved
Hide resolved
…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
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, looks good 🍻
@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. |
...eature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/process/custom_ops.py
Outdated
Show resolved
Hide resolved
…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