Skip to content

Commit

Permalink
Release 7.11.0b1
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Feb 2, 2021
1 parent 206999f commit 6d3bc61
Show file tree
Hide file tree
Showing 63 changed files with 788 additions and 740 deletions.
80 changes: 80 additions & 0 deletions Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,86 @@
Changelog
=========

7.11.0b1 (2021-02-02)
---------------------

* Added support for 7.11 APIs
* Added the ``X-Elastic-Client-Meta`` HTTP header and the ``meta_header`` parameter
for controlling the header (`#1473`_)
* Added ``ElasticsearchWarning`` which is raised when the ``Warning`` HTTP header
is returned from Elasticsearch. ``ElasticsearchDeprecationWarning`` is now
an alias for this warning type (`#1495`_)

.. _#1473: https://github.com/elastic/elasticsearch-py/pull/1473
.. _#1495: https://github.com/elastic/elasticsearch-py/pull/1495

7.10.1 (2020-12-09)
-------------------

* Fixed issue where the Scan helper would fail if a ``scroll`` response returned
without a value for ``_shards.skipped`` (`#1451`_)
* Fixed handling of IPv6 hosts with a port in the computed ``Connection.host`` property (`#1460`_)
* Fixed documented task management API stability, should have been as "experimental" (`#1471`_)
* Changed deprecated ``collections.Mapping`` in favor of
``collections.abc.Mapping`` for Python 3.9 (`#1443`_)

.. _#1443: https://github.com/elastic/elasticsearch-py/pull/1443
.. _#1451: https://github.com/elastic/elasticsearch-py/pull/1451
.. _#1460: https://github.com/elastic/elasticsearch-py/pull/1460
.. _#1471: https://github.com/elastic/elasticsearch-py/pull/1471

7.10.0 (2020-11-11)
-------------------

* Added support for Elasticsearch 7.10 APIs
* Added basic type stubs for static type checking and IDE auto-complete of API parameters (`#1297`_, `#1406`_)
* Added support for `Optimistic Concurrency Control options`_
(``_if_seq_no``/``_if_primary_term``) to bulk helpers (`#1387`_)
* Added support for passing ``_source`` with ``"_op_type": "update"``
bulk helpers (`#1387`_)
* Fixed bug where ``Connection.log_request_failure()`` call would receive the compressed
HTTP body rather than uncompressed when an error is raised for ``RequestsHttpConnection`` (`#1394`_)
* Fix a typo in AsyncTransport where ``sniff_timeout`` was used instead of ``sniffer_timeout`` (`#1431`_)
* Removed explicit ``yarl`` dependency from ``[async]`` extra to avoid issue where pip
would override ``aiohttp``'s pin of ``yarl``. This is not a problem if you
install with ``--use-feature=2020-resolver``. Users should see no changes. (`#1401`_)

.. _Optimistic Concurrency Control options: https://www.elastic.co/guide/en/elasticsearch/reference/current/optimistic-concurrency-control.html
.. _#1431: https://github.com/elastic/elasticsearch-py/pull/1431
.. _#1406: https://github.com/elastic/elasticsearch-py/pull/1406
.. _#1401: https://github.com/elastic/elasticsearch-py/pull/1401
.. _#1394: https://github.com/elastic/elasticsearch-py/pull/1394
.. _#1387: https://github.com/elastic/elasticsearch-py/pull/1387
.. _#1297: https://github.com/elastic/elasticsearch-py/pull/1297

7.9.1 (2020-08-19)
------------------

* Fixed the import of async helpers which were not available in 7.9.0 (`#1353`_)
* Added support for ``url_prefix`` when using ``AIOHttpConnection`` (`#1357`_)

.. _#1353: https://github.com/elastic/elasticsearch-py/pull/1353
.. _#1357: https://github.com/elastic/elasticsearch-py/pull/1357

7.9.0 (2020-08-18)
------------------

* Added support for ES 7.9 APIs
* Fixed retries to not raise an error when ``sniff_on_connection_error=True``
and a ``TransportError`` is raised during the sniff step. Instead the
retry will continue or the error that triggered the retry will be raised
(See `#1279`_ and `#1326`_)

.. _#1326: https://github.com/elastic/elasticsearch-py/pull/1326
.. _#1279: https://github.com/elastic/elasticsearch-py/pull/1279

7.8.1 (2020-07-30)
------------------

* Added the ``accept_enterprise`` parameter to ``xpack.info`` API (See `#1337`_)

.. _#1337: https://github.com/elastic/elasticsearch-py/pull/1337

7.8.0 (2020-06-18)
------------------

Expand Down
76 changes: 38 additions & 38 deletions elasticsearch/_async/client/__init__.py

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions elasticsearch/_async/client/async_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async def delete(self, id, params=None, headers=None):
Deletes an async search by ID. If the search is still running, the search
request will be cancelled. Otherwise, the saved search results are deleted.
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/async-search.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.11/async-search.html>`_
:arg id: The async search ID
"""
Expand All @@ -42,7 +42,7 @@ async def get(self, id, params=None, headers=None):
Retrieves the results of a previously submitted async search request given its
ID.
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/async-search.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.11/async-search.html>`_
:arg id: The async search ID
:arg keep_alive: Specify the time interval in which the results
Expand Down Expand Up @@ -106,7 +106,7 @@ async def submit(self, body=None, index=None, params=None, headers=None):
"""
Executes a search request asynchronously.
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/async-search.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.11/async-search.html>`_
:arg body: The search definition using the Query DSL
:arg index: A comma-separated list of index names to search; use
Expand Down Expand Up @@ -212,7 +212,7 @@ async def status(self, id, params=None, headers=None):
Retrieves the status of a previously submitted async search request given its
ID.
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/async-search.html>`_
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.11/async-search.html>`_
:arg id: The async search ID
"""
Expand Down
40 changes: 12 additions & 28 deletions elasticsearch/_async/client/autoscaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,10 @@ class AutoscalingClient(NamespacedClient):
@query_params()
async def delete_autoscaling_policy(self, name, params=None, headers=None):
"""
Deletes an autoscaling policy.
Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
Direct use is not supported.
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/autoscaling-delete-autoscaling-policy.html>`_
.. warning::
This API is **experimental** so may include breaking changes
or be removed in a future version
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.11/autoscaling-delete-autoscaling-policy.html>`_
:arg name: the name of the autoscaling policy
"""
Expand All @@ -46,14 +42,10 @@ async def delete_autoscaling_policy(self, name, params=None, headers=None):
@query_params()
async def get_autoscaling_policy(self, name, params=None, headers=None):
"""
Retrieves an autoscaling policy.
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/autoscaling-get-autoscaling-policy.html>`_
.. warning::
Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
Direct use is not supported.
This API is **experimental** so may include breaking changes
or be removed in a future version
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.11/autoscaling-get-autoscaling-policy.html>`_
:arg name: the name of the autoscaling policy
"""
Expand All @@ -70,14 +62,10 @@ async def get_autoscaling_policy(self, name, params=None, headers=None):
@query_params()
async def put_autoscaling_policy(self, name, body, params=None, headers=None):
"""
Creates a new autoscaling policy.
Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
Direct use is not supported.
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/autoscaling-put-autoscaling-policy.html>`_
.. warning::
This API is **experimental** so may include breaking changes
or be removed in a future version
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.11/autoscaling-put-autoscaling-policy.html>`_
:arg name: the name of the autoscaling policy
:arg body: the specification of the autoscaling policy
Expand All @@ -98,14 +86,10 @@ async def put_autoscaling_policy(self, name, body, params=None, headers=None):
async def get_autoscaling_capacity(self, params=None, headers=None):
"""
Gets the current autoscaling capacity based on the configured autoscaling
policy.
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/autoscaling-get-autoscaling-capacity.html>`_
.. warning::
policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not
supported.
This API is **experimental** so may include breaking changes
or be removed in a future version
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.11/autoscaling-get-autoscaling-capacity.html>`_
"""
return await self.transport.perform_request(
"GET", "/_autoscaling/capacity", params=params, headers=headers
Expand Down
Loading

0 comments on commit 6d3bc61

Please sign in to comment.