Skip to content

Retrieve list of all features rolled out for a particular key #62

Closed

Description

@sgringwe

Is there a way to get a list of all the features enabled for a given user/key? Just a list of enabled feature keys would work perfectly.

Activity

  1. jkodumal commented on Mar 29, 2016

    @jkodumal
    Contributor
  2. sgringwe commented on Mar 29, 2016

    @sgringwe
    Author

    Thanks @jkodumal . Is there any documentation on that method? Is this going to LD servers for every flag?

  3. jkodumal commented on Mar 29, 2016

    @jkodumal
    Contributor

    @sgringwe -- it's something we've been slowly rolling out to all our SDKs, so it hasn't been documented yet. If streaming is enabled, this will evaluate all flags for the provided user from the flag rules stored in memory, so it will not make a remote call. If streaming is disabled, this will make a remote HTTP request, though will still use local HTTP cache if your TTL is set to non-zero.

    It will return a hash of symbolized feature flag keys to flag values.

  4. sgringwe commented on Mar 29, 2016

    @sgringwe
    Author

    @jkodumal yes, that works. it'd be great to see this feature made more public in the api and to make sure any changes are mentioned in CHANGELOG. thanks!

  5. jkodumal commented on Mar 29, 2016

    @jkodumal
    Contributor

    Definitely @sgringwe -- we're waiting on a couple things before we announce this more publicly:

    1. A strategy for sending events back to LD when you call this method. At the moment, calling this won't send analytics data back to LD, so you won't see these events on your dev console.

    2. Full support across all our SDKs

    This method is stable-- we're not going to change the API, so you can use it in production, but just wanted to make you aware especially of the analytics limitation. On that front, would you mind sharing your use case? We know that many people are using this to send a list of flags back to their front-end, but I'd be interested in knowing if you've got another use case in mind.

  6. sgringwe commented on Mar 29, 2016

    @sgringwe
    Author

    @jkodumal thanks. we use it for tracking in intercom, full story, etc. what features they have turned on.

  7. sgringwe commented on Nov 8, 2016

    @sgringwe
    Author

    @jkodumal hmm it looks like this method was removed in the latest version. is there a new alternative?

  8. jkodumal commented on Nov 8, 2016

    @jkodumal
    Contributor

    Hi @sgringwe -- for consistency with our other SDKs the method has been renamed to all_flags-- it should behave equivalently.

  9. added a commit that references this issue on May 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions