From 5bb3bc7c815f3e85531cbfedb3471c1f0005ff46 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Mon, 13 Nov 2023 10:33:31 +0400 Subject: [PATCH] Release 8.11.0 --- docs/guide/release-notes.asciidoc | 10 ++++++++++ elasticsearch/helpers/actions.py | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/guide/release-notes.asciidoc b/docs/guide/release-notes.asciidoc index 074f507e2..21594cbe2 100644 --- a/docs/guide/release-notes.asciidoc +++ b/docs/guide/release-notes.asciidoc @@ -1,6 +1,7 @@ [[release-notes]] == Release notes +* <> * <> * <> * <> @@ -31,6 +32,15 @@ * <> * <> +[discrete] +[[rn-8-11-0]] +=== 8.11.0 (2023-11-13) + +- Support Python 3.12 +- Removed deprecation warnings when using `body` parameter +- Added missing `scores` parameter to create trained model vocabulary API +- Added missing `delete_dest_index` parameter to delete transform API + [discrete] [[rn-8-10-1]] === 8.10.1 (2023-10-13) diff --git a/elasticsearch/helpers/actions.py b/elasticsearch/helpers/actions.py index 48e45f05c..6f4ea00a2 100644 --- a/elasticsearch/helpers/actions.py +++ b/elasticsearch/helpers/actions.py @@ -262,7 +262,7 @@ def _process_bulk_chunk_success( if not ok and raise_on_error and status_code not in ignore_status: # include original document source if len(data) > 1: - item["data"] = data[1] # type: ignore[misc] + item["data"] = data[1] errors.append({op_type: item}) if ok or not errors: @@ -299,7 +299,7 @@ def _process_bulk_chunk_error( op_type, action = data[0].copy().popitem() info = {"error": err_message, "status": error.status_code, "exception": error} if op_type != "delete" and len(data) > 1: - info["data"] = data[1] # type: ignore[misc] + info["data"] = data[1] info.update(action) exc_errors.append({op_type: info})