Skip to content

feat: update provider status when provider emits events#309

Merged
federicobond merged 6 commits into
open-feature:mainfrom
federicobond:fix-events
Apr 7, 2024
Merged

feat: update provider status when provider emits events#309
federicobond merged 6 commits into
open-feature:mainfrom
federicobond:fix-events

Conversation

@federicobond

Copy link
Copy Markdown
Member

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

@codecov

codecov Bot commented Mar 28, 2024

Copy link
Copy Markdown

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.

@gruebel gruebel left a comment

Copy link
Copy Markdown
Member

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

Comment thread openfeature/provider/_registry.py Outdated
@federicobond

Copy link
Copy Markdown
Member Author

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

@beeme1mr beeme1mr left a comment

Copy link
Copy Markdown
Member

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.

Comment thread openfeature/api.py Outdated
@gruebel

gruebel commented Apr 6, 2024

Copy link
Copy Markdown
Member

@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>
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