-
Notifications
You must be signed in to change notification settings - Fork 47
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
Conversation
# Conflicts: # twisted-requirements.txt
@@ -10,24 +10,24 @@ def __init__(self): | |||
self._initialized = False | |||
self._features = {} | |||
|
|||
def get(self, key): | |||
def get(self, key, callback): |
There was a problem hiding this comment.
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..
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
lgtm |
Is there a twisted RESTWrapper in place? |
@jkodumal This is only for LDD mode. We don't have LDD running in our restwrapper environment, but the twisted restwrapper passes locally. |
detect uWSGI threads option, not just enable-threads
Part of this is recycled from before we removed Twisted support.