-
Notifications
You must be signed in to change notification settings - Fork 9
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: Implement Requirement 1.1.2 #78
feat: Implement Requirement 1.1.2 #78
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #78 +/- ##
==========================================
+ Coverage 99.22% 99.25% +0.02%
==========================================
Files 11 11
Lines 129 134 +5
==========================================
+ Hits 128 133 +5
Misses 1 1 ☔ 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.
Thanks for continuing work on this 🙇🏻
@technicalpickles Apologies for the multi-month delay here; just wrapped up paternity leave! Will review the comments and respond/push some fixes today or tomorrow. |
Creates a new specification folder under specs that contains direct OpenFeature specification tests. Adds a test for Requirement 1.1.1. Signed-off-by: Max VelDink <[email protected]> Test name typo Signed-off-by: Max VelDink <[email protected]>
Signed-off-by: Max VelDink <[email protected]>
Signed-off-by: Max VelDink <[email protected]>
Signed-off-by: Max VelDink <[email protected]>
move to Configuration instead of being directly on API. Signed-off-by: Max VelDink <[email protected]>
Signed-off-by: Max VelDink <[email protected]>
Signed-off-by: Max VelDink <[email protected]>
Signed-off-by: Max VelDink <[email protected]>
@technicalpickles @josecolella Bumping this PR to see if you all might have any time to review it this week 🙏🏻 |
Hey @toddbaert, could you please take a quick look at this pr to unblock @maxveldink? |
@maxveldink @beeme1mr I'll review this today. |
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.
Seems spec compliant as far as I can tell. Could you verify this for me?
Co-authored-by: Todd Baert <[email protected]> Signed-off-by: Max VelDink <[email protected]>
e17405a
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 started this review after the first ping, but never submitted 😨
Co-authored-by: Josh Nichols <[email protected]> Signed-off-by: Max VelDink <[email protected]>
Signed-off-by: Max VelDink <[email protected]>
Signed-off-by: Max VelDink <[email protected]>
This PR
Note that this is built off of #77 and will not have that base commit if that commit is accepted.
init
andshutdown
method. I believe we want to leave the defaultinitialize
behavior alone in Ruby to satisfy this requirement. This means someone can initialize a Provider instance (and use whatever construction logic there is) and define aninit
method invoked when the provider is set.provider
writer method onConfiguration
with the behavior required for this requirement. In the following Requirement, which introduced named providers, we should consider renaming this toset_provider
orregister_provider
or something similar, as there will be an additional argument that would be an unexpected writer signature. That will be a breaking change and is not strictly required for this requirement, so I decided to defer that.Follow-up Tasks
I plan on continuing to implement the flag evaluation API in subsequent PRs.
How to test
Ensure that providers can still be set while configuring OpenFeature. You can play around with a stub Provider that implements
init
andshutdown
to verify those are also called as expected.