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

Add methods to get feature states and active features #90

Merged
merged 1 commit into from
Feb 18, 2016

Conversation

snags88
Copy link
Contributor

@snags88 snags88 commented Feb 18, 2016

We use a rails API and often send feature flags to the client side one by one. With these methods, we can send a summary of the feature flags to the client side.

Rollout#feature_states will return a hash where the key is the feature name and the value is a boolean based on if it's active or not. You can optionally pass in the user to get the states for a specific user.

Rollout#active_features will return an array of feature names that are active. You can optionally pass in the user to get the active features for that user.

Specs are written for each methods.

@reneklacan
Copy link
Member

Very nice! Thank you!

reneklacan added a commit that referenced this pull request Feb 18, 2016
Add methods to get feature states and active features
@reneklacan reneklacan merged commit 319b72f into fetlife:master Feb 18, 2016
@snags88 snags88 deleted the user-feature-list branch February 10, 2017 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants