-
Notifications
You must be signed in to change notification settings - Fork 55
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
#118 Add IsFeatureEnabled function to client #119
#118 Add IsFeatureEnabled function to client #119
Conversation
…already been retrieved.
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.
@courupteddata Could you add a section to the readme in this PR on how to use this new functionality?
@FredrikOseberg I've added a readme entry for this change. |
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.
LGTM. Thanks for your contribution and patience @courupteddata
About the changes
This change adds an IsFeatureEnabled function that is a variant of the IsEnabled function but accepts a api.Feature instead of a string for the case where you already have the feature.
Closes #118
Discussion points
I'm not certain on the function name and don't want to cause confusion, but I thought it made sense.
I think this functionality could make sense for others and if there is a better approach someone else wants I'm all ears. 👂