-
Notifications
You must be signed in to change notification settings - Fork 35
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: only shutdown providers that are not attached to any client #444
fix: only shutdown providers that are not attached to any client #444
Conversation
Signed-off-by: Lukas Reining <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #444 +/- ##
=======================================
Coverage 99.47% 99.47%
=======================================
Files 25 25
Lines 2468 2469 +1
Branches 236 236
=======================================
+ Hits 2455 2456 +1
Misses 13 13
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Nice change
Co-authored-by: Michael Beemer <[email protected]> Signed-off-by: Lukas Reining <[email protected]>
@toddbaert are you waiting for the spec change to be merged? If so, could you link that PR here? |
Ya, I'm waiting for open-feature/spec#193 just to avoid any thrashing. |
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 LGTM. I will wait to merge once open-feature/spec#193 is merged.
🤖 I have created a release *beep* *boop* --- ## [0.0.4](shared-v0.0.3...shared-v0.0.4) (2023-06-06) ### Features * add init/shutdown and events ([#436](#436)) ([5d55ea1](5d55ea1)) * add named client support ([#429](#429)) ([310c6ac](310c6ac)) * add support for flag metadata ([#426](#426)) ([029ec26](029ec26)) ### Bug Fixes * only shutdown providers that are not attached to any client ([#444](#444)) ([7e469c4](7e469c4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [0.3.3-experimental](web-sdk-v0.3.2-experimental...web-sdk-v0.3.3-experimental) (2023-06-06) ### Features * add init/shutdown and events ([#436](#436)) ([5d55ea1](5d55ea1)) * add named client support ([#429](#429)) ([310c6ac](310c6ac)) * add support for flag metadata ([#426](#426)) ([029ec26](029ec26)) ### Bug Fixes * bundlers wrongly resolving server/client modules ([#445](#445)) ([6acddd5](6acddd5)) * only shutdown providers that are not attached to any client ([#444](#444)) ([7e469c4](7e469c4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [1.3.0](js-sdk-v1.2.0...js-sdk-v1.3.0) (2023-06-06) ### Features * add init/shutdown and events ([#436](#436)) ([5d55ea1](5d55ea1)) * add named client support ([#429](#429)) ([310c6ac](310c6ac)) * add support for flag metadata ([#426](#426)) ([029ec26](029ec26)) ### Bug Fixes * bundlers wrongly resolving server/client modules ([#445](#445)) ([6acddd5](6acddd5)) * only shutdown providers that are not attached to any client ([#444](#444)) ([7e469c4](7e469c4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Signed-off-by: Michael Beemer <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Michael Beemer <[email protected]>
This PR
Providers that are bound to several named clients are closed if another provider is set for one of these clients.
This PR only closes providers if they are not used by any client.
Related Issues
Fixes #443
Notes
Follow-up Tasks
How to test
Added tests for server and client.