-
Notifications
You must be signed in to change notification settings - Fork 25
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 in-process resolver to support flag metadata #305 #309
feat: Update in-process resolver to support flag metadata #305 #309
Conversation
Signed-off-by: christian.lutnik <[email protected]>
…re#305 Signed-off-by: christian.lutnik <[email protected]>
…re#305 Signed-off-by: christian.lutnik <[email protected]>
…re#305 Signed-off-by: christian.lutnik <[email protected]>
…re#305 Signed-off-by: christian.lutnik <[email protected]>
…re#305 Signed-off-by: christian.lutnik <[email protected]>
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.
Thank you, looks good to me. i just have a few questions/suggestions, but nothing which should block a merge ;)
src/OpenFeature.Contrib.Providers.Flagd/Resolver/InProcess/JsonEvaluator.cs
Outdated
Show resolved
Hide resolved
src/OpenFeature.Contrib.Providers.Flagd/Resolver/InProcess/JsonEvaluator.cs
Outdated
Show resolved
Hide resolved
src/OpenFeature.Contrib.Providers.Flagd/Resolver/InProcess/JsonEvaluator.cs
Outdated
Show resolved
Hide resolved
src/OpenFeature.Contrib.Providers.Flagd/Resolver/InProcess/JsonEvaluator.cs
Show resolved
Hide resolved
…re#305 Signed-off-by: christian.lutnik <[email protected]>
…re#305 Signed-off-by: christian.lutnik <[email protected]>
…re#305 Signed-off-by: christian.lutnik <[email protected]>
return; | ||
} | ||
|
||
throw new ParseErrorException("Metadata entry for key " + key + " and value " + value + |
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.
Is this the proper exception type?
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.
Ya I think it's the best one.
…re#305 Signed-off-by: christian.lutnik <[email protected]>
} | ||
else | ||
{ | ||
foreach (var key in new List<string>(data.Metadata.Keys)) |
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.
nit: I think it would be more typical to do this functionally with Linq (.Select
) but it's a style choice.
This PR
Adds support for metadata to the flagd provider
Related Issues
Fixes #305