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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instrument new Elasticsearch methods #507

Merged
merged 1 commit into from
Mar 20, 2020
Merged

Conversation

adamchainz
Copy link
Contributor

These methods seem to have been added in version 7.6.0, although that's not documented. Our test test_all_client_attributes_accounted_for started failing.

These methods don't take an index argument:

>>> import elasticsearch
>>> help(elasticsearch.Elasticsearch.get_script_context)
Help on function get_script_context in module elasticsearch.client:

get_script_context(self, params=None, headers=None)
    Returns all script contexts.

>>> help(elasticsearch.Elasticsearch.get_script_languages)
Help on function get_script_languages in module elasticsearch.client:

get_script_languages(self, params=None, headers=None)
    Returns available script types, languages and contexts

These methods seem to have been added in version 7.6.0, although that's [not documented](elastic/elasticsearch-py#1168). Our test `test_all_client_attributes_accounted_for` started failing.

These methods don't take an index argument:

```
>>> import elasticsearch
>>> help(elasticsearch.Elasticsearch.get_script_context)
Help on function get_script_context in module elasticsearch.client:

get_script_context(self, params=None, headers=None)
    Returns all script contexts.

>>> help(elasticsearch.Elasticsearch.get_script_languages)
Help on function get_script_languages in module elasticsearch.client:

get_script_languages(self, params=None, headers=None)
    Returns available script types, languages and contexts
```
@adamchainz adamchainz merged commit c2180a6 into master Mar 20, 2020
@adamchainz adamchainz deleted the elasticsearch_new_methods branch March 20, 2020 11:29
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.

1 participant