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

#118 Add IsFeatureEnabled function to client #119

Conversation

courupteddata
Copy link
Contributor

@courupteddata courupteddata commented Jul 23, 2022

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

Copy link
Contributor

@FredrikOseberg FredrikOseberg left a 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?

@courupteddata
Copy link
Contributor Author

@FredrikOseberg I've added a readme entry for this change.

Copy link
Contributor

@FredrikOseberg FredrikOseberg left a 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

@FredrikOseberg FredrikOseberg merged commit 459ff5b into Unleash:v3 Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

(Feature Request) Enable passing api.Feature instead of a string to an alternative of IsEnabled
3 participants