-
Notifications
You must be signed in to change notification settings - Fork 27
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: Adding a Provider implementation on top of the standard dotnet FeatureManagement system. #129
feat: Adding a Provider implementation on top of the standard dotnet FeatureManagement system. #129
Conversation
6fe721d
to
5dc3a85
Compare
af5ed19
to
ba4bb99
Compare
Signed-off-by: Eric Pattison <[email protected]>
Signed-off-by: Eric Pattison <[email protected]>
Signed-off-by: Austin Drenski <[email protected]> Signed-off-by: Eric Pattison <[email protected]>
Signed-off-by: Austin Drenski <[email protected]> Signed-off-by: Eric Pattison <[email protected]>
fixing some whitespace issues Signed-off-by: Eric Pattison <[email protected]>
Signed-off-by: Eric Pattison <[email protected]>
…re#128) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Eric Pattison <[email protected]>
ba4bb99
to
4921e15
Compare
@toddbaert @bacherfl could you please review this tomorrow? |
if (userId.IsString) targetingContext.UserId = userId.AsString; | ||
} | ||
|
||
if (evaluationContext.ContainsKey("Groups")) |
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.
nitpick: I suggest to add a constant for UserId
and Groups
[Theory] | ||
[InlineData(true)] | ||
[InlineData(false)] | ||
public async Task MissingFlagKey_ShouldReturnDefault(bool defaultValue) |
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.
for the sake of completeness, I suggest to also add test cases for the other data types (i.e. ResolveStringValue
, etc.) to check if the default value is returned in case the flag is not found in the configuration
...e.Contrib.Providers.FeatureManagement/OpenFeature.Contrib.Providers.FeatureManagement.csproj
Outdated
Show resolved
Hide resolved
…e.Contrib.Providers.FeatureManagement.csproj Co-authored-by: Florian Bacher <[email protected]> Signed-off-by: ericpattison <[email protected]>
removing BOM that was added to csproj replacing hardcoded strings with nameofs Signed-off-by: Eric Pattison <[email protected]>
…ttison/dotnet-sdk-contrib into feature/FeatureManagementProvider Signed-off-by: Eric Pattison <[email protected]>
Updated to address @bacherfl's suggestions. |
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.
thanks for the additional tests! LGTM
Seems like i did not see the failing dotnet-format check - can you please address that one? Other than that the implementation looks good to me |
Signed-off-by: Eric Pattison <[email protected]>
This is currently dependent on a preview feature being added to the standard dotnet FeatureManagement library called Variants.
This new feature is required as with out it, features are either on or off. Variants allow feature flags to provide configuration based values.