Skip to content

Commit 6d3bc61

Browse files
committed
Release 7.11.0b1
1 parent 206999f commit 6d3bc61

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+788
-740
lines changed

Diff for: Changelog.rst

+80
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,86 @@
33
Changelog
44
=========
55

6+
7.11.0b1 (2021-02-02)
7+
---------------------
8+
9+
* Added support for 7.11 APIs
10+
* Added the ``X-Elastic-Client-Meta`` HTTP header and the ``meta_header`` parameter
11+
for controlling the header (`#1473`_)
12+
* Added ``ElasticsearchWarning`` which is raised when the ``Warning`` HTTP header
13+
is returned from Elasticsearch. ``ElasticsearchDeprecationWarning`` is now
14+
an alias for this warning type (`#1495`_)
15+
16+
.. _#1473: https://github.com/elastic/elasticsearch-py/pull/1473
17+
.. _#1495: https://github.com/elastic/elasticsearch-py/pull/1495
18+
19+
7.10.1 (2020-12-09)
20+
-------------------
21+
22+
* Fixed issue where the Scan helper would fail if a ``scroll`` response returned
23+
without a value for ``_shards.skipped`` (`#1451`_)
24+
* Fixed handling of IPv6 hosts with a port in the computed ``Connection.host`` property (`#1460`_)
25+
* Fixed documented task management API stability, should have been as "experimental" (`#1471`_)
26+
* Changed deprecated ``collections.Mapping`` in favor of
27+
``collections.abc.Mapping`` for Python 3.9 (`#1443`_)
28+
29+
.. _#1443: https://github.com/elastic/elasticsearch-py/pull/1443
30+
.. _#1451: https://github.com/elastic/elasticsearch-py/pull/1451
31+
.. _#1460: https://github.com/elastic/elasticsearch-py/pull/1460
32+
.. _#1471: https://github.com/elastic/elasticsearch-py/pull/1471
33+
34+
7.10.0 (2020-11-11)
35+
-------------------
36+
37+
* Added support for Elasticsearch 7.10 APIs
38+
* Added basic type stubs for static type checking and IDE auto-complete of API parameters (`#1297`_, `#1406`_)
39+
* Added support for `Optimistic Concurrency Control options`_
40+
(``_if_seq_no``/``_if_primary_term``) to bulk helpers (`#1387`_)
41+
* Added support for passing ``_source`` with ``"_op_type": "update"``
42+
bulk helpers (`#1387`_)
43+
* Fixed bug where ``Connection.log_request_failure()`` call would receive the compressed
44+
HTTP body rather than uncompressed when an error is raised for ``RequestsHttpConnection`` (`#1394`_)
45+
* Fix a typo in AsyncTransport where ``sniff_timeout`` was used instead of ``sniffer_timeout`` (`#1431`_)
46+
* Removed explicit ``yarl`` dependency from ``[async]`` extra to avoid issue where pip
47+
would override ``aiohttp``'s pin of ``yarl``. This is not a problem if you
48+
install with ``--use-feature=2020-resolver``. Users should see no changes. (`#1401`_)
49+
50+
.. _Optimistic Concurrency Control options: https://www.elastic.co/guide/en/elasticsearch/reference/current/optimistic-concurrency-control.html
51+
.. _#1431: https://github.com/elastic/elasticsearch-py/pull/1431
52+
.. _#1406: https://github.com/elastic/elasticsearch-py/pull/1406
53+
.. _#1401: https://github.com/elastic/elasticsearch-py/pull/1401
54+
.. _#1394: https://github.com/elastic/elasticsearch-py/pull/1394
55+
.. _#1387: https://github.com/elastic/elasticsearch-py/pull/1387
56+
.. _#1297: https://github.com/elastic/elasticsearch-py/pull/1297
57+
58+
7.9.1 (2020-08-19)
59+
------------------
60+
61+
* Fixed the import of async helpers which were not available in 7.9.0 (`#1353`_)
62+
* Added support for ``url_prefix`` when using ``AIOHttpConnection`` (`#1357`_)
63+
64+
.. _#1353: https://github.com/elastic/elasticsearch-py/pull/1353
65+
.. _#1357: https://github.com/elastic/elasticsearch-py/pull/1357
66+
67+
7.9.0 (2020-08-18)
68+
------------------
69+
70+
* Added support for ES 7.9 APIs
71+
* Fixed retries to not raise an error when ``sniff_on_connection_error=True``
72+
and a ``TransportError`` is raised during the sniff step. Instead the
73+
retry will continue or the error that triggered the retry will be raised
74+
(See `#1279`_ and `#1326`_)
75+
76+
.. _#1326: https://github.com/elastic/elasticsearch-py/pull/1326
77+
.. _#1279: https://github.com/elastic/elasticsearch-py/pull/1279
78+
79+
7.8.1 (2020-07-30)
80+
------------------
81+
82+
* Added the ``accept_enterprise`` parameter to ``xpack.info`` API (See `#1337`_)
83+
84+
.. _#1337: https://github.com/elastic/elasticsearch-py/pull/1337
85+
686
7.8.0 (2020-06-18)
787
------------------
888

Diff for: elasticsearch/_async/client/__init__.py

+38-38
Large diffs are not rendered by default.

Diff for: elasticsearch/_async/client/async_search.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async def delete(self, id, params=None, headers=None):
2525
Deletes an async search by ID. If the search is still running, the search
2626
request will be cancelled. Otherwise, the saved search results are deleted.
2727
28-
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/async-search.html>`_
28+
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.11/async-search.html>`_
2929
3030
:arg id: The async search ID
3131
"""
@@ -42,7 +42,7 @@ async def get(self, id, params=None, headers=None):
4242
Retrieves the results of a previously submitted async search request given its
4343
ID.
4444
45-
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/async-search.html>`_
45+
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.11/async-search.html>`_
4646
4747
:arg id: The async search ID
4848
:arg keep_alive: Specify the time interval in which the results
@@ -106,7 +106,7 @@ async def submit(self, body=None, index=None, params=None, headers=None):
106106
"""
107107
Executes a search request asynchronously.
108108
109-
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/async-search.html>`_
109+
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.11/async-search.html>`_
110110
111111
:arg body: The search definition using the Query DSL
112112
:arg index: A comma-separated list of index names to search; use
@@ -212,7 +212,7 @@ async def status(self, id, params=None, headers=None):
212212
Retrieves the status of a previously submitted async search request given its
213213
ID.
214214
215-
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/async-search.html>`_
215+
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.11/async-search.html>`_
216216
217217
:arg id: The async search ID
218218
"""

Diff for: elasticsearch/_async/client/autoscaling.py

+12-28
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,10 @@ class AutoscalingClient(NamespacedClient):
2222
@query_params()
2323
async def delete_autoscaling_policy(self, name, params=None, headers=None):
2424
"""
25-
Deletes an autoscaling policy.
25+
Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
26+
Direct use is not supported.
2627
27-
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/autoscaling-delete-autoscaling-policy.html>`_
28-
29-
.. warning::
30-
31-
This API is **experimental** so may include breaking changes
32-
or be removed in a future version
28+
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.11/autoscaling-delete-autoscaling-policy.html>`_
3329
3430
:arg name: the name of the autoscaling policy
3531
"""
@@ -46,14 +42,10 @@ async def delete_autoscaling_policy(self, name, params=None, headers=None):
4642
@query_params()
4743
async def get_autoscaling_policy(self, name, params=None, headers=None):
4844
"""
49-
Retrieves an autoscaling policy.
50-
51-
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/autoscaling-get-autoscaling-policy.html>`_
52-
53-
.. warning::
45+
Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
46+
Direct use is not supported.
5447
55-
This API is **experimental** so may include breaking changes
56-
or be removed in a future version
48+
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.11/autoscaling-get-autoscaling-policy.html>`_
5749
5850
:arg name: the name of the autoscaling policy
5951
"""
@@ -70,14 +62,10 @@ async def get_autoscaling_policy(self, name, params=None, headers=None):
7062
@query_params()
7163
async def put_autoscaling_policy(self, name, body, params=None, headers=None):
7264
"""
73-
Creates a new autoscaling policy.
65+
Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
66+
Direct use is not supported.
7467
75-
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/autoscaling-put-autoscaling-policy.html>`_
76-
77-
.. warning::
78-
79-
This API is **experimental** so may include breaking changes
80-
or be removed in a future version
68+
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.11/autoscaling-put-autoscaling-policy.html>`_
8169
8270
:arg name: the name of the autoscaling policy
8371
:arg body: the specification of the autoscaling policy
@@ -98,14 +86,10 @@ async def put_autoscaling_policy(self, name, body, params=None, headers=None):
9886
async def get_autoscaling_capacity(self, params=None, headers=None):
9987
"""
10088
Gets the current autoscaling capacity based on the configured autoscaling
101-
policy.
102-
103-
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/autoscaling-get-autoscaling-capacity.html>`_
104-
105-
.. warning::
89+
policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not
90+
supported.
10691
107-
This API is **experimental** so may include breaking changes
108-
or be removed in a future version
92+
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.11/autoscaling-get-autoscaling-capacity.html>`_
10993
"""
11094
return await self.transport.perform_request(
11195
"GET", "/_autoscaling/capacity", params=params, headers=headers

0 commit comments

Comments
 (0)