Skip to content

Don't pass kwargs everywhere, but do keep params to Elasticsearch.search separated - #102

Merged
nickstenning merged 1 commit into
openannotation:masterfrom
Treora:revise_search_raw2
Sep 30, 2014
Merged

Don't pass kwargs everywhere, but do keep params to Elasticsearch.search separated#102
nickstenning merged 1 commit into
openannotation:masterfrom
Treora:revise_search_raw2

Conversation

@Treora

@Treora Treora commented Sep 30, 2014

Copy link
Copy Markdown
Contributor

A combination of #91 and #101. As suggested in #101 (comment)

@Treora Treora mentioned this pull request Sep 30, 2014
Comment thread annotator/annotation.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No need for kwargs here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Either **kwargs, or raw_results is needed. I doubted and opted for the former, or would you rather have arguments explicit when they are only used in the parent's class?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yup, make raw_result explicit, I think.

@nickstenning

Copy link
Copy Markdown
Member

Just a couple of nitpicks -- also I'd prefer if you could make this a clean set of changes on top of current HEAD. There's no need for a revert commit.

@nickstenning

Copy link
Copy Markdown
Member

LGTM. Merging.

nickstenning added a commit that referenced this pull request Sep 30, 2014
Don't pass kwargs everywhere, but do keep params to Elasticsearch.search separated
@nickstenning
nickstenning merged commit aaef1df into openannotation:master Sep 30, 2014
@tilgovi

tilgovi commented Sep 30, 2014

Copy link
Copy Markdown
Member

🍻

@Treora
Treora deleted the revise_search_raw2 branch October 1, 2014 13:26
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