-
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: tolerate duplicate provider registrations #725
fix: tolerate duplicate provider registrations #725
Conversation
src/test/java/dev/openfeature/sdk/testutils/FeatureProviderTestUtils.java
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #725 +/- ##
============================================
+ Coverage 94.74% 95.09% +0.35%
- Complexity 364 366 +2
============================================
Files 33 33
Lines 856 857 +1
Branches 52 53 +1
============================================
+ Hits 811 815 +4
+ Misses 23 22 -1
+ Partials 22 20 -2
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.
this is my only concern. If it works, I think you should bring the order back to what it was before.
f03e980
to
f82228f
Compare
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
f0c8213
to
ce201d1
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
This PR
Fixes a bug that prevented the same provider from being registered with multiple names (or the same provider as default and with another name).
Note that I have not changed the behavior of
EventProvider.java
where it throws if multiple eventing attachments were attempted be to registered.