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

New methods for fetching all user settings and all feature flags #51

Merged
merged 3 commits into from
Feb 16, 2016

Conversation

jkodumal
Copy link
Contributor

If streaming is enabled, these new methods will not make remote calls

@jkodumal
Copy link
Contributor Author

HoundCI seems to be having issues unrelated to these changes.

@pkaeding
Copy link
Contributor

👍

end
end

def get_user_settings(user)
Hash[all_flags.map { |key, feature| [key, evaluate(feature, user)]}]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should send feature events here.

@slumos
Copy link

slumos commented Feb 2, 2016

Almost have this integrated, but wanted to mention that I ran into the same problem mentioned at sourcelevel/faraday-http-cache#38. There's a gem that supposedly works around the problem that ultimately lies with Net::HTTP, https://github.com/ma2gedev/faraday-encoding, but for now I just changed the serializer to Marshal as in [https://github.com/24pullrequests/contribulator/pull/47/files](this other project).

I also added back our LDClient#add_user_override to my fork. Not sure if you were planning to implement that, but if not then I'll move it elsewhere so we can use your gem unmodified.

@jkodumal
Copy link
Contributor Author

jkodumal commented Feb 2, 2016

@slumos Happy to take both changes (the add_user_override and the Marshal serializer) if you submit a PR. Thanks!

slumos pushed a commit to slumos/ruby-client that referenced this pull request Feb 2, 2016
Below copied from launchdarkly#51 (comment)

Almost have this integrated, but wanted to mention that I ran into the
same problem mentioned at sourcelevel/faraday-http-cache#38. There's a
gem that supposedly works around the problem that ultimately lies with
Net::HTTP, https://github.com/ma2gedev/faraday-encoding, but for now I
just changed the serializer to Marshal as in
https://github.com/andrew/contribulator/pull/47/files.

I also added back our LDClient#add_user_override to my fork. Not sure if
you were planning to implement that, but if not then I'll move it
elsewhere so we can use your gem unmodified.
@slumos
Copy link

slumos commented Feb 4, 2016

This is working well for us.

@slumos
Copy link

slumos commented Feb 16, 2016

Ping @jkodumal. Will this get merged soon?

jkodumal added a commit that referenced this pull request Feb 16, 2016
New methods for fetching all user settings and all feature flags
@jkodumal jkodumal merged commit 1ac3051 into master Feb 16, 2016
@jkodumal jkodumal deleted the jko/all-features branch February 16, 2016 04:42
eli-darkly added a commit that referenced this pull request May 10, 2018
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.

3 participants