Skip to content

Add Twisted support for LDD mode #55

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

Merged
merged 10 commits into from
Aug 23, 2016
Merged

Add Twisted support for LDD mode #55

merged 10 commits into from
Aug 23, 2016

Conversation

drichelson
Copy link
Contributor

Part of this is recycled from before we removed Twisted support.

@@ -10,24 +10,24 @@ def __init__(self):
self._initialized = False
self._features = {}

def get(self, key):
def get(self, key, callback):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Technically this is an interface change that should require us to change the version to 3.0..

Copy link
Contributor

Choose a reason for hiding this comment

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

Does this work in the non-twisted world?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes- Locally I ran the integration harness against the redis and in-memory feature store

@@ -66,43 +66,43 @@ def test_initialized(self, store):
def test_get_existing_feature(self, store):
store = self.base_initialized_store(store)
expected = self.make_feature('foo', 10)
assert store.get('foo') == expected
assert store.get('foo', lambda x: x) == expected
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be clearer to define this identity function once, and reference it in all the places.

@pkaeding
Copy link
Contributor

lgtm
👍
looks good to me
merge away
I approve
canned replies are great.

@jkodumal
Copy link
Contributor

Is there a twisted RESTWrapper in place?

@drichelson
Copy link
Contributor Author

@jkodumal This is only for LDD mode. We don't have LDD running in our restwrapper environment, but the twisted restwrapper passes locally.

@drichelson drichelson merged commit a44055d into master Aug 23, 2016
@drichelson drichelson deleted the dr/twistedv2 branch August 23, 2016 01:50
eli-darkly added a commit that referenced this pull request May 25, 2018
detect uWSGI threads option, not just enable-threads
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