Skip to content

Conversation

@bshakur8
Copy link

When stats_only is False, return a tuple of (results, errors), where results is the list of bulk results and errors is the current errors list.

in Python3.11, when <stats_only> is False, it returns a tuple of (<success>, <errors>)
insted of only list of <errors>.
The fix makes sure that it returns a tuple when <stats_only> is True
and list otherwise.
When <stats_only> is False, return a tuple of (results, errors).
where <results> is the list of bulk results and errors is the current errors list.
@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?

@cla-checker-service
Copy link

❌ Author of the following commits did not sign a Contributor Agreement:
525c585, 20aca5e

Please, read and sign the above mentioned agreement if you want to contribute to this project

@pquentin
Copy link
Member

Sorry for not answering earlier, but this is a breaking change. If you really need this, you can always use the bulk API directly, without the helper.

@pquentin pquentin closed this Nov 12, 2024
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.

4 participants