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

Is there a way to fetch the flags for a user #52

Closed
joelr opened this issue May 15, 2014 · 6 comments
Closed

Is there a way to fetch the flags for a user #52

joelr opened this issue May 15, 2014 · 6 comments

Comments

@joelr
Copy link

joelr commented May 15, 2014

it would be great to get a list of flags currently available to a user..

@johnbaku
Copy link
Member

+1

@EricR
Copy link
Contributor

EricR commented May 23, 2014

I'm not sure what you mean by "flags". Do you mean to say it would be great to show what features a user has activated?

@joelr
Copy link
Author

joelr commented May 23, 2014

Yup, sorry I meant features per user (internally we refer to them as
feature flags).

On Saturday, May 24, 2014, Eric Rafaloff notifications@github.com wrote:

I'm not sure what you mean by "flags". Do you mean to say it would be
great to show what features a user has activated?


Reply to this email directly or view it on GitHubhttps://github.com//issues/52#issuecomment-44058903
.

Joel Richards

@EricR
Copy link
Contributor

EricR commented May 23, 2014

Right now, you can do this by enumerating over an array of expected feature names and calling active?(feature, user) for each. You can get a list of features by calling features.

However, I agree that something like this should be apart of Rollout.

@catkins
Copy link

catkins commented Jul 28, 2014

In our app, we wrap rollout for a bit more flexibility, and we solve this in the way that @EricR mentions

def all_for_user(user)
  $rollout.features.select do |feature|
    $rollout.active?(feature, user)
  end
end

@reneklacan
Copy link
Member

Closed by #90

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

No branches or pull requests

5 participants