Étienne Beaulé and GitHub
1b0440a33f
Ignore name of index when fetching settings ( #823 )
...
This commit fixes a situation where an index cannot be updated through this client as the index is aliased, with the client pointing to the alias.
As the `GET /<index>/_settings` request will only ever return the settings for the specified index (through the alias), it would only have one key, so the name of the key would not matter. We can pop the key to get the settings object for the index through the alias.
Signed-off-by: Étienne Beaulé <[email protected] >
2024-09-26 14:02:13 -04:00
CorneeSean and GitHub
3087686fff
Collapse support added to AsyncSearch helper ( #769 ) ( #827 )
...
Signed-off-by: Radoslaw Kuczynski <[email protected] >
2024-09-26 08:20:25 -04:00
Daniel (dB.) Doubrovkine and GitHub
a24b9f3f3c
Fix: generator adds new namespace. ( #813 )
...
Signed-off-by: dblock <[email protected] >
2024-08-28 10:07:50 -07:00
borisevich-a-v and GitHub
cd68b03157
Fixed timeout argument in Transport ( #810 )
...
* Fixed timeout argument in Transport
Signed-off-by: borisevich-a-v <[email protected] >
* Fixed ignore argument in perform request in Transport and AsyncTransport
Signed-off-by: borisevich-a-v <[email protected] >
* Apply black and isort
Signed-off-by: borisevich-a-v <[email protected] >
* Add info into CHANGELOG.md
Signed-off-by: borisevich-a-v <[email protected] >
---------
Signed-off-by: borisevich-a-v <[email protected] >
2024-08-27 06:20:52 -04:00
Jeppe Fihl-Pearson and GitHub
e26f3fc28c
Add override for code generator to change indices.put_alias argument order ( #804 )
...
* Add currently-failing test to validate the original argument order
Signed-off-by: Jeppe Fihl-Pearson <[email protected] >
* Add workaround for breaking API change inadvertently added in v2.7.0
Signed-off-by: Jeppe Fihl-Pearson <[email protected] >
* Generate new version of the client code with the correct argument order
Signed-off-by: Jeppe Fihl-Pearson <[email protected] >
---------
Signed-off-by: Jeppe Fihl-Pearson <[email protected] >
2024-08-22 08:33:55 -04:00
be56ae82b8
fix: retry_on_conflicts is not bool ( #795 )
...
Signed-off-by: dblock <[email protected] >
Co-authored-by: Patrick Rice <[email protected] >
2024-08-15 10:34:37 -04:00
55f9940d51
Remove HEAD-handling hack. ( #794 )
...
* remove HEAD -> GET workaround
Signed-off-by: dblock <[email protected] >
* Removed remaining HEAD-handling code.
Signed-off-by: dblock <[email protected] >
* Fixed remaining references to admin:admin.
Signed-off-by: dblock <[email protected] >
---------
Signed-off-by: dblock <[email protected] >
Co-authored-by: Vincent Castaneda <[email protected] >
2024-08-15 10:15:13 -04:00
Daniel (dB.) Doubrovkine and GitHub
2d6ae74211
Updated dependencies, generated API. ( #793 )
...
* Updated dependencies.
Signed-off-by: dblock <[email protected] >
* Lock setuptools at 71.1.0.
Newer version seems to cause UserWarning: Unknown distribution option: 'test_suite'.
Signed-off-by: dblock <[email protected] >
* Updated opensearch-py APIs to reflect opensearch-api-specification@9d3bc34.
Signed-off-by: dblock <[email protected] >
* Do not test against flaky 2.0.
Signed-off-by: dblock <[email protected] >
* Reduce test matrix and add 2.16.
Signed-off-by: dblock <[email protected] >
* Fix missing spaces in generated descriptions.
Signed-off-by: dblock <[email protected] >
* Removed 2.2.1.
Signed-off-by: dblock <[email protected] >
---------
Signed-off-by: dblock <[email protected] >
2024-08-14 15:25:01 -07:00
Hugo van Kemenade and GitHub
6e3f1a1194
Remove redundant mock backport dependency and upgrade syntax for Python 3.8+ ( #785 )
...
* Upgrade syntax with pyupgrade --py38-plus
Signed-off-by: Hugo van Kemenade <[email protected] >
* Convert to f-strings with flynt
Signed-off-by: Hugo van Kemenade <[email protected] >
* Format with Black
Signed-off-by: Hugo van Kemenade <[email protected] >
* Remove redundant mock backport dependency
Signed-off-by: Hugo van Kemenade <[email protected] >
* isort imports
Signed-off-by: Hugo van Kemenade <[email protected] >
* Add changelog entry
Signed-off-by: Hugo van Kemenade <[email protected] >
---------
Signed-off-by: Hugo van Kemenade <[email protected] >
2024-07-20 16:19:20 -04:00
Hugo van Kemenade and GitHub
de96d28e45
Remove redundant six dependency ( #781 )
...
* Don't create universal wheel for Python 3 only
Signed-off-by: Hugo van Kemenade <[email protected] >
* Update Black target version to match min Python supported
Signed-off-by: Hugo van Kemenade <[email protected] >
* Upgrade files using six to Python 3 syntax
Signed-off-by: Hugo van Kemenade <[email protected] >
* Remove redundant six dependency
Signed-off-by: Hugo van Kemenade <[email protected] >
* Format with Black
Signed-off-by: Hugo van Kemenade <[email protected] >
* Add changelog entry
Signed-off-by: Hugo van Kemenade <[email protected] >
---------
Signed-off-by: Hugo van Kemenade <[email protected] >
2024-07-20 12:30:37 -04:00
Daniel (dB.) Doubrovkine and GitHub
1ef788a55a
Skip elements with titles. ( #777 )
...
* Skip elements with titles.
Signed-off-by: dblock <[email protected] >
* Simplify and just skip by ref.
Signed-off-by: dblock <[email protected] >
* Re-generate API spec.
Signed-off-by: dblock <[email protected] >
* Do not skip alias tests.
Signed-off-by: dblock <[email protected] >
* Actually skip node_id_or_metric.
Signed-off-by: dblock <[email protected] >
---------
Signed-off-by: dblock <[email protected] >
2024-07-18 13:24:38 -07:00
ea0a718754
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-07-15) ( #775 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-07-15 08:30:16 -04:00
04a2350ba0
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-07-12) ( #773 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-07-11 22:33:22 -07:00
cef3cd5b1c
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-06-24) ( #767 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-06-24 09:18:43 -07:00
d39280759b
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-06-20) ( #766 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-06-19 22:10:00 -07:00
f7cac3033d
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-06-17) ( #763 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-06-17 15:33:14 -07:00
ee21471c13
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-05-22) ( #749 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-05-22 08:30:08 -07:00
5b40a85f9a
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-05-21) ( #747 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-05-20 20:53:47 -07:00
72173c3fb0
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-05-15) ( #742 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-05-15 09:55:45 -07:00
1bf403c0f2
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-05-10) ( #741 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-05-10 10:44:19 -07:00
Sai Medhini Reddy Maryada and GitHub
9a67bbfd16
fixed generator ( #738 )
...
Signed-off-by: saimedhi <[email protected] >
2024-05-01 16:59:17 -04:00
303b6c6f64
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-04-24) ( #734 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-04-23 22:35:59 -07:00
26a7b12756
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-04-23) ( #732 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-04-23 00:02:15 -07:00
d0aee06e41
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-04-20) ( #727 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-04-22 08:52:16 -04:00
3082d92f7d
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-04-19) ( #725 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-04-18 21:40:53 -07:00
Sai Medhini Reddy Maryada and GitHub
b47edf906e
Code generated using native OpenAPI specification ( #724 )
...
* Code generated using native OpenAPI specification
Signed-off-by: saimedhi <[email protected] >
* Code generated using native OpenAPI specification
Signed-off-by: saimedhi <[email protected] >
* Code generated using native OpenAPI specification
Signed-off-by: saimedhi <[email protected] >
---------
Signed-off-by: saimedhi <[email protected] >
2024-04-17 16:22:14 -07:00
Sai Medhini Reddy Maryada and GitHub
ba715b9d3f
Dropped support for python 3.6, 3.7 and added support for python 3.12 ( #717 )
...
Signed-off-by: saimedhi <[email protected] >
2024-04-06 11:18:47 -04:00
c770d88dc9
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-03-22) ( #702 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-03-22 16:40:18 -04:00
Sai Medhini Reddy Maryada and GitHub
25db5d5c8a
Modified generator to generate plugins ( #700 )
...
Signed-off-by: saimedhi <[email protected] >
2024-03-22 07:53:28 -04:00
8b91bb4ddb
Updated opensearch-py to reflect the latest OpenSearch API spec (2024-02-07) ( #671 )
...
Signed-off-by: GitHub <[email protected] >
Co-authored-by: saimedhi <[email protected] >
2024-02-08 11:41:26 -05:00
Sai Medhini Reddy Maryada and GitHub
900ea94ec8
Incorporated API generation into CI workflow and fixed 'generate' nox session ( #660 )
...
Signed-off-by: saimedhi <[email protected] >
2024-01-24 17:46:18 -05:00
Sai Medhini Reddy Maryada and GitHub
2ab3a40307
Updated the get_policy API in the index_management plugin to allow the policy_id argument as optional ( #633 )
...
Signed-off-by: saimedhi <[email protected] >
2024-01-10 23:08:41 -08:00
odelmarcelle and GitHub
3eba72c320
Reusable async client ( #639 )
...
* set aiohttp.ClientSession to None after close()
Signed-off-by: odlmarce <[email protected] >
* add test
Signed-off-by: odlmarce <[email protected] >
* update changelog
Signed-off-by: odlmarce <[email protected] >
* update changelog + format
Signed-off-by: odlmarce <[email protected] >
* update changelog
Signed-off-by: odlmarce <[email protected] >
* add tests using `with` and synchronous client
Signed-off-by: odlmarce <[email protected] >
* fix `urllib3.exceptions.ClosedPoolError` breaking synchronous client after `close`
Signed-off-by: odlmarce <[email protected] >
* update changelog
Signed-off-by: odlmarce <[email protected] >
* separate tests
Signed-off-by: odlmarce <[email protected] >
* refactor pool factory as lambda
Signed-off-by: odlmarce <[email protected] >
---------
Signed-off-by: odlmarce <[email protected] >
2024-01-02 13:33:24 -05:00
DJ Carrillo and GitHub
db61b5943b
Added fix for key error because of missing 'hits' key. ( #616 )
...
Updated CHANGELOG.md.
nox formatting applied.
Added new unit test for actions scan function.
Added type hints & nox formatting.
Added fix to async scan function & added matching unit tests for async.
Signed-off-by: Djcarrillo6 <[email protected] >
2023-12-04 09:26:25 -05:00
Samuel Orji and GitHub
6f26eb3e8e
remove unnecessary utf-8 header in .py files ( #615 )
...
* remove unnecessary utf-8 header in .py files
Signed-off-by: samuel orji <[email protected] >
* review feedback: add link to changelog
Signed-off-by: samuel orji <[email protected] >
---------
Signed-off-by: samuel orji <[email protected] >
2023-11-24 16:19:50 -05:00
Daniel (dB.) Doubrovkine and GitHub
1801ada270
Added pylint, enforce naming. ( #590 )
...
* Added pylint.
Signed-off-by: dblock <[email protected] >
* Enforce pylint:invalid-name.
Signed-off-by: dblock <[email protected] >
* Updated the generated code header to prevent broken links.
Signed-off-by: dblock <[email protected] >
* Swapped order of messages.
Signed-off-by: dblock <[email protected] >
---------
Signed-off-by: dblock <[email protected] >
2023-11-21 10:04:39 -08:00
Daniel (dB.) Doubrovkine and GitHub
e68b9e762d
Added client-level REST helpers. ( #544 )
...
* Added client-level REST helpers.
Signed-off-by: dblock <[email protected] >
* Move functions into an .http namespace.
Signed-off-by: dblock <[email protected] >
* Poetry update in samples.
Signed-off-by: dblock <[email protected] >
* Fix: typo.
Signed-off-by: dblock <[email protected] >
* Clarified what to use in which older versions.
Signed-off-by: dblock <[email protected] >
---------
Signed-off-by: dblock <[email protected] >
2023-11-13 12:52:13 -08:00
Daniel (dB.) Doubrovkine and GitHub
f02d6dee27
Avoid decoding request body unless it needs to be logged. ( #571 )
...
Signed-off-by: dblock <[email protected] >
Signed-off-by: Daniel (dB.) Doubrovkine <[email protected] >
2023-11-12 11:42:45 -08:00
Daniel (dB.) Doubrovkine and GitHub
f410e81d80
Fix: build and deploy docs. ( #575 )
...
* Fix: build and deploy docs.
Signed-off-by: dblock <[email protected] >
* Run nox -rs generate.
Signed-off-by: dblock <[email protected] >
---------
Signed-off-by: dblock <[email protected] >
2023-11-11 14:28:43 -08:00
Daniel (dB.) Doubrovkine and GitHub
d8dc5474b7
Expanded nox -rs docs to generate docs. ( #568 )
...
Signed-off-by: dblock <[email protected] >
Signed-off-by: Daniel (dB.) Doubrovkine <[email protected] >
2023-11-09 23:21:35 -08:00
Daniel (dB.) Doubrovkine and GitHub
58b83d8c06
Added Windows CI. ( #569 )
...
Signed-off-by: dblock <[email protected] >
2023-11-09 17:41:37 -08:00
56606ed541
Set enable_cleanup_closed=True to drop TLS connections without a shutdown ( #468 )
...
* Set enable_cleanup_closed=True to drop TLS connections without a shutdown
AsyncOpenSearch seems to leak TLS connections due to a missing parameter in `aiohttp.TCPConnector`. This causes #172 and was also fixed "upstream" in this issue https://github.com/elastic/elasticsearch-py/issues/1910 .
Signed-off-by: Sandor Nemes <[email protected] >
* Update CHANGELOG.md
Signed-off-by: Sandor Nemes <[email protected] >
---------
Signed-off-by: Sandor Nemes <[email protected] >
Signed-off-by: Daniel (dB.) Doubrovkine <[email protected] >
Co-authored-by: Daniel (dB.) Doubrovkine <[email protected] >
2023-11-09 18:52:10 -05:00
Daniel (dB.) Doubrovkine and GitHub
56c96d7c4f
Expanded type coverage to benchmarks, samples and tests. ( #566 )
...
* Renamed json samples to fix duplicate module name.
Signed-off-by: dblock <[email protected] >
* Enabled mypy on all source files.
Signed-off-by: dblock <[email protected] >
* Added missing types.
Signed-off-by: dblock <[email protected] >
* Added CHANGELOG.
Signed-off-by: dblock <[email protected] >
* Move type: ignore to fix untyped decorator makes function untyped.
Signed-off-by: dblock <[email protected] >
* Fix nox -rs lint-3.7.
Signed-off-by: dblock <[email protected] >
* Fixed incorrect import.
Signed-off-by: dblock <[email protected] >
* Fix broken test.
Signed-off-by: dblock <[email protected] >
* Fixed TestBulk::test_bulk_works_with_bytestring_body.
Signed-off-by: dblock <[email protected] >
---------
Signed-off-by: dblock <[email protected] >
2023-11-09 10:51:20 -05:00
Daniel (dB.) Doubrovkine and GitHub
dcb79cc322
Merge .pyi type stubs inline ( #563 )
...
* Merged types into .py code.
Signed-off-by: dblock <[email protected] >
* Fix: nox -rs generate.
Signed-off-by: dblock <[email protected] >
* Updated CHANGELOG.
Signed-off-by: dblock <[email protected] >
* Use lowest common python version for lint.
Signed-off-by: dblock <[email protected] >
* Fix: don't typeshed.
Signed-off-by: dblock <[email protected] >
* Removed unneeded comment.
Signed-off-by: dblock <[email protected] >
* Simplify OPENSEARCH_URL.
Signed-off-by: dblock <[email protected] >
* Fix: positional ignore_status used as chunk_size.
Signed-off-by: dblock <[email protected] >
* Fix: parse version string.
Signed-off-by: dblock <[email protected] >
* Remove future annotations for Python 3.6.
Signed-off-by: dblock <[email protected] >
* Fix: types in documentation.
Signed-off-by: dblock <[email protected] >
* Improve CHANGELOG text.
Signed-off-by: dblock <[email protected] >
* Re-added missing separator.
Signed-off-by: dblock <[email protected] >
* Remove duplicate licenses.
Signed-off-by: dblock <[email protected] >
* Get rid of Optional[Any].
Signed-off-by: dblock <[email protected] >
* Fix docs with AsyncOpenSearch.
Signed-off-by: dblock <[email protected] >
* Fix: undo comment.
Signed-off-by: dblock <[email protected] >
---------
Signed-off-by: dblock <[email protected] >
2023-11-06 10:08:19 -08:00
Daniel (dB.) Doubrovkine and GitHub
0da60b2623
Added a utf-8 header to all .py files ( #557 )
...
Signed-off-by: dblock <[email protected] >
2023-10-26 13:34:34 -04:00
Daniel (dB.) Doubrovkine and GitHub
5c7fe9dbde
Fix: don't hardcode client class name. ( #555 )
...
Signed-off-by: dblock <[email protected] >
2023-10-26 09:30:23 -07:00
Daniel (dB.) Doubrovkine and GitHub
ebd50e0515
Override put_mapping definition to make index name optional. ( #553 )
...
Signed-off-by: dblock <[email protected] >
2023-10-26 11:31:13 -04:00
Sai Medhini Reddy Maryada and GitHub
fe4b6d754c
added remote store client ( #552 )
...
Signed-off-by: saimedhi <[email protected] >
2023-10-26 10:59:07 -04:00
Sai Medhini Reddy Maryada and GitHub
1190079f51
Generate opensearch-py client from API specs ( #551 )
...
Signed-off-by: saimedhi <[email protected] >
2023-10-26 10:58:33 -04:00
Sai Medhini Reddy Maryada and GitHub
ce835fb59d
Generate cluster client from API specs ( #530 )
...
Signed-off-by: saimedhi <[email protected] >
2023-10-09 17:57:09 -04:00