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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrating with simplesearch view and fix the tests #3419

Merged
merged 4 commits into from
Dec 26, 2018

Conversation

safwanrahman
Copy link
Contributor

This will integrate SimpleSearch (implemented in #3417) with the simple_search view. All the tests of simple_search view seems to be passing! 馃挴
Maybe we have progress one step towards upgrading to Elasticsearch 6.x! 馃槃
@pmac what do you think?

@pmac
Copy link
Member

pmac commented Nov 29, 2018

re #3294

Copy link
Member

@pmac pmac left a 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():
Copy link
Member

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.

Copy link
Contributor Author

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
Copy link
Member

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.

Copy link
Contributor Author

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.

@pmac
Copy link
Member

pmac commented Dec 26, 2018

Going ahead and merging this so that you can continue with the ES work. Thanks again!

@pmac pmac merged commit 5753a0c into mozilla:es_upgrade Dec 26, 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.

None yet

2 participants