You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Retrieve list of all features rolled out for a particular key #62
@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.
@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!
Definitely @sgringwe -- we're waiting on a couple things before we announce this more publicly:
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.
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.
Activity
jkodumal commentedon Mar 29, 2016
Hi @sgringwe -- I believe this is what you're looking for:
https://github.com/launchdarkly/ruby-client/blob/master/lib/ldclient-rb/ldclient.rb#L240
sgringwe commentedon Mar 29, 2016
Thanks @jkodumal . Is there any documentation on that method? Is this going to LD servers for every flag?
jkodumal commentedon Mar 29, 2016
@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.
sgringwe commentedon Mar 29, 2016
@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!
jkodumal commentedon Mar 29, 2016
Definitely @sgringwe -- we're waiting on a couple things before we announce this more publicly:
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.
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.
sgringwe commentedon Mar 29, 2016
@jkodumal thanks. we use it for tracking in intercom, full story, etc. what features they have turned on.
sgringwe commentedon Nov 8, 2016
@jkodumal hmm it looks like this method was removed in the latest version. is there a new alternative?
jkodumal commentedon Nov 8, 2016
Hi @sgringwe -- for consistency with our other SDKs the method has been renamed to
all_flags-- it should behave equivalently.Merge pull request #62 from launchdarkly/eb/ch16609/remove-moneta-2