Skip to content
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

Merged

Conversation

Kavindu-Dodan
Copy link
Contributor

@Kavindu-Dodan Kavindu-Dodan commented Dec 11, 2023

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.

@Kavindu-Dodan Kavindu-Dodan requested a review from a team as a code owner December 11, 2023 20:08
Copy link

codecov bot commented Dec 11, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (07ea4c0) 94.74% compared to head (ce201d1) 95.09%.

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     
Flag Coverage Δ
unittests 95.09% <100.00%> (+0.35%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@beeme1mr beeme1mr changed the title fix: Allow provider mulitple regiration fix: Allow multiple provider registrations Dec 11, 2023
Copy link
Member

@toddbaert toddbaert left a 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.

@toddbaert toddbaert changed the title fix: Allow multiple provider registrations fix: allow duplicate provider registrations Dec 11, 2023
@toddbaert toddbaert changed the title fix: allow duplicate provider registrations fix: tolerate duplicate provider registrations Dec 11, 2023
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
Copy link

sonarcloud bot commented Dec 12, 2023

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@Kavindu-Dodan Kavindu-Dodan merged commit 3319e55 into open-feature:main Dec 12, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants