-
Notifications
You must be signed in to change notification settings - Fork 704
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrating with simplesearch view and fix the tests #3419
Conversation
re #3294 |
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.
My apologies for taking so long to get back to this. I still need to do some manual testing, but it's looking good and I can get it merged for more testing on the ES branch. Just a few questions in comments.
@@ -32,10 +32,15 @@ class UntypedS(object): | |||
def F(*args, **kwargs): | |||
pass | |||
|
|||
|
|||
def get_es(): |
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.
We should at least have this print a warning or something. It still needs to go away entirely.
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.
Maybe can add a comment with TODO:
@@ -178,7 +178,7 @@ def unindex_task(cls, id_list, **kw): | |||
@task() | |||
@timeit | |||
def update_synonyms_task(): | |||
es = get_es() | |||
es = get_es() # noqa |
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.
Is this being ignored by flake8 because it's not imported? I don't think we should paper over it like this as we might forget to remove it later.
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.
Yeah. I think I can add a comment here with TODO:
to remove it.
I dont know any other easy way to make the flake8 happy for this.
Going ahead and merging this so that you can continue with the ES work. Thanks again! |
This will integrate
SimpleSearch
(implemented in #3417) with thesimple_search
view. All the tests ofsimple_search
view seems to be passing! 馃挴Maybe we have progress one step towards upgrading to Elasticsearch 6.x! 馃槃
@pmac what do you think?