elastic / elasticsearch-serverless-python

Official Python client for Elasticsearch Serverless
Apache License 2.0
9 stars 4 forks source link

Pass endpoint_id and path_parts to BaseClient #69

Closed pquentin closed 4 months ago

pquentin commented 4 months ago

Part of https://github.com/elastic/elasticsearch-serverless-python/issues/52

This backports https://github.com/elastic/elasticsearch-py/pull/2457. However, to make the tests pass with the current transport, this also includes the typing changes of https://github.com/elastic/elasticsearch-py/pull/2482 and does not send those parameters to the transport in preparation of backporting https://github.com/elastic/elasticsearch-py/pull/2490. (Turns out knowing the future allows avoiding failed experiments!)

This depends on #66 and #67 that I would like to merge first to make this pull request smaller. And this unblocks #68.

pquentin commented 4 months ago

git got confused by the squash which caused merged conflicts, but I confirmed this is OK by regenerating everything.