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

feat: update provider status when provider emits events #309

Merged
merged 6 commits into from
Apr 7, 2024

Conversation

federicobond
Copy link
Member

I also made openfeature.provider.registry a private module and moved the registry singleton inside it.

Copy link

codecov bot commented Mar 28, 2024

Codecov Report

Attention: Patch coverage is 96.15385% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 97.58%. Comparing base (faf02a9) to head (9aa8a75).

Files Patch % Lines
openfeature/provider/_registry.py 88.88% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #309      +/-   ##
==========================================
+ Coverage   97.10%   97.58%   +0.47%     
==========================================
  Files          27       27              
  Lines        1176     1202      +26     
==========================================
+ Hits         1142     1173      +31     
+ Misses         34       29       -5     
Flag Coverage Δ
unittests 97.58% <96.15%> (+0.47%) ⬆️

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.

Copy link
Member

@gruebel gruebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, just a small suggestion

openfeature/provider/_registry.py Outdated Show resolved Hide resolved
@federicobond
Copy link
Member Author

@gruebel found a couple of bugs with the event logic around provider initialization/shutdown, all new changes are in the latest commit.

Copy link
Member

@beeme1mr beeme1mr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a suggestion but overall looks good.

openfeature/api.py Outdated Show resolved Hide resolved
@gruebel
Copy link
Member

gruebel commented Apr 6, 2024

@federicobond new changes look good 🙂

Signed-off-by: Federico Bond <federicobond@gmail.com>
Signed-off-by: Federico Bond <federicobond@gmail.com>
Signed-off-by: Federico Bond <federicobond@gmail.com>
Signed-off-by: Federico Bond <federicobond@gmail.com>
Signed-off-by: Federico Bond <federicobond@gmail.com>
Signed-off-by: Federico Bond <federicobond@gmail.com>
@federicobond federicobond merged commit 9966c14 into open-feature:main Apr 7, 2024
11 of 12 checks passed
@federicobond federicobond deleted the fix-events branch April 8, 2024 06:50
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.

3 participants