-
Notifications
You must be signed in to change notification settings - Fork 19
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
Basic flag evaluation support #5
Conversation
This isn't needed, everything will be contained in the one csproj for now Signed-off-by: Benjamin Evenson <benjamin.evenson@loanmarketgroup.com>
Signed-off-by: Benjamin Evenson <benjamin.evenson@loanmarketgroup.com>
e7c8173
to
c48a782
Compare
I've seen this and plan on taking a close look in the next 2 days while I'm travelling! Thank you @benjiro |
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.
Looks good to me overall as a partial implementation!
Thanks so much for your contribution!
src/OpenFeature/OpenFeatureClient.cs
Outdated
/*var allHooks = new List<IHook>() | ||
.Concat(OpenFeature.GetHooks()) | ||
.Concat(_hooks) | ||
.ToList(); | ||
|
||
var allHooksReversed = allHooks | ||
.AsEnumerable() | ||
.Reverse() | ||
.ToList(); | ||
|
||
var hookContext = new HookContext<bool>( | ||
flagKey, | ||
defaultValue, | ||
FlagValueType.Boolean, | ||
_metadata, | ||
OpenFeature.GetProviderMetadata(), | ||
context | ||
);*/ |
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.
Looks like this is commented on purpose, b/c you haven't implemented hooks, yet, but just commenting to make sure you didn't mean to remove it.
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.
Yea I got through implementing hooks and decided I should just get the basics done first. Ill rebase and remove this out for now
Implement the most basic version of the specification. Signed-off-by: Benjamin Evenson <benjamin.evenson@loanmarketgroup.com>
Signed-off-by: Benjamin Evenson <benjamin.evenson@loanmarketgroup.com>
c48a782
to
9f1d990
Compare
I'm going to move this PR forwards, so I can open the PR for hooks + context |
Issue: #3
This PR implements the most basic form of the specification to allow retrival of string, number, boolean and structured flags.
Note this is a barebones start, IE I haven't Async'd anything yet