Skip to content

Conversation

jubins
Copy link
Contributor

@jubins jubins commented Jan 11, 2019

The timeout parameter in docstring is misleading for following methods in elasticsearch.client.indices.py, renamed this param in docstring as request_timeout:

  1. create
  2. open
  3. close
  4. delete
  5. put_mapping
  6. put_alias
  7. update_aliases
  8. delete_alias
  9. put_template
  10. delete_template
  11. shrink
  12. rollover

…the @query_params decorator expects `request_timeout`.

The `timeout` parameter in docstring is misleading for following methods in elasticsearch.client.indices.py, renamed this param in docstring as `request_timeout`:
1. create
2. open
3. close
4. delete
5. put_mapping
6. put_alias
7. update_aliases
8. delete_alias
9. put_template
10. delete_template
11. shrink
12. rollover
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@fxdgear
Copy link
Contributor

fxdgear commented Jan 14, 2019

Jenkins test this please

@fxdgear
Copy link
Contributor

fxdgear commented Feb 22, 2019

@jubins Thanks for the patch, but I was doing just a quick check at the decorator for the first docstring you patched and the decorator is using timeout and not request_timeout.

https://github.com/elastic/elasticsearch-py/pull/891/files#diff-c0a511c3d163495efdbeb7da5404e9e7R72

1. Changed the `timeout` to `request_timeout` in the @query_params decorator as request_timeout in not getting escaped utils.py.
2. Re-tested the changed methods.
@jubins
Copy link
Contributor Author

jubins commented Feb 24, 2019

@jubins Thanks for the patch, but I was doing just a quick check at the decorator for the first docstring you patched and the decorator is using timeout and not request_timeout.

https://github.com/elastic/elasticsearch-py/pull/891/files#diff-c0a511c3d163495efdbeb7da5404e9e7R72

@fxdgear Thanks for pointing this out, I've tested and updated query_params decorator to use request_timeout.

@fxdgear
Copy link
Contributor

fxdgear commented Mar 28, 2019

jenkins test this please

@fxdgear
Copy link
Contributor

fxdgear commented Apr 25, 2019

@jubins Could you please rebase this PR, I'll have jekins run the tests again afterwards.

Thanks
n

@jubins
Copy link
Contributor Author

jubins commented Apr 26, 2019

@jubins Could you please rebase this PR, I'll have jekins run the tests again afterwards.

Thanks
n

Hi Nick,
There were some conflicts in my branch. I've retested and created another PR
#937 (comment)

@jubins jubins closed this Apr 26, 2019
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