-
Notifications
You must be signed in to change notification settings - Fork 39
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
fix: consistent method chainability #913
Conversation
Signed-off-by: DBlanchard88 <davidblanchard88@gmail.com>
Signed-off-by: DBlanchard88 <davidblanchard88@gmail.com>
Signed-off-by: DBlanchard88 <davidblanchard88@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #913 +/- ##
============================================
+ Coverage 94.98% 95.21% +0.22%
- Complexity 383 384 +1
============================================
Files 36 36
Lines 877 877
Branches 53 53
============================================
+ Hits 833 835 +2
+ Misses 24 23 -1
+ Partials 20 19 -1
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 can't see any issues with this, and I can't see how any of these could be considered breaking.
Anyone else concerned about this?
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
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
I'll merge this tomorrow at the latest unless anyone has objections. |
Quality Gate passedIssues Measures |
-Client Interface: Modified
setEvaluationContext
andaddHooks
to returnClient
instances, enabling chaining.-MutableContext: Updated
setTargetingKey
to return aMutableContext
instance.-OpenFeatureAPI: Altered
setEvaluationContext
to returnOpenFeatureAPI
instances.-OpenFeatureClient: Updated both
addHooks
andsetEvaluationContext
to returnOpenFeatureClient
instances.-Added unit tests to verify chainability for each updated method.
Fixes: #906