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!: Support version 2.0 of the OpenFeature SDK. #38

Merged
merged 6 commits into from
Aug 26, 2024

Conversation

kinyoklion
Copy link
Member

Update to support 2.0 of the OpenFeature SDK. This is a breaking change.

await provider.Initialize(EvaluationContext.Builder().Set("key", "test").Build());
Assert.Equal(ProviderStatus.Ready, provider.GetStatus());

var eventContent = await provider.GetEventChannel().Reader.ReadAsync();
Copy link
Member Author

Choose a reason for hiding this comment

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

Provider doesn't emit these first events, the client does, and we are testing the provider outside the client.

Copy link
Member Author

@kinyoklion kinyoklion Aug 22, 2024

Choose a reason for hiding this comment

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

I will look at adding tests for the behavior with the client. It would let us know about changes in the behavior that could manifest to customers as bugs.

Added the tests.

@@ -11,6 +11,7 @@ public sealed partial class Provider
private class StatusProvider
{
private ProviderStatus _providerStatus = ProviderStatus.NotReady;
Copy link
Member Author

Choose a reason for hiding this comment

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

This is now a mirror of the status because the provider doesn't own its status, but also cannot read it.

@kinyoklion kinyoklion marked this pull request as ready for review August 22, 2024 22:06
@kinyoklion kinyoklion requested a review from a team as a code owner August 22, 2024 22:06
@kinyoklion kinyoklion merged commit 1ebe21c into main Aug 26, 2024
4 checks passed
@kinyoklion kinyoklion deleted the rlamb/update-of-sdk-2 branch August 26, 2024 15:46
kinyoklion pushed a commit that referenced this pull request Aug 26, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.0.0](1.0.0...2.0.0)
(2024-08-26)


### ⚠ BREAKING CHANGES

* Support version 2.0 of the OpenFeature SDK.
([#38](#38))

### Features

* Support version 2.0 of the OpenFeature SDK.
([#38](#38))
([1ebe21c](1ebe21c))

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

2 participants