Commit Graph
1636 Commits
Author SHA1 Message Date
Daniel (dB.) Doubrovkine bf9add4eed Fix /cluster/stats in a backwards compatible way (#851)
* Ran nox -s generate.

Signed-off-by: dblock <[email protected]>

* Fix: backwards compatible parameter order in cluster stats.

Signed-off-by: dblock <[email protected]>

* Moved Updated APIs section to the correct set.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
2024-11-25 14:54:03 -08:00
MerlinandDaniel Doubrovkine 12c379d32d Implement AsyncOpenSearch() parameter ssl_assert_hostname (#843)
* Implement AsyncOpenSearch() parameter `ssl_assert_hostname` to allow disabling SSL hostname verification

Signed-off-by: merlinz01 <[email protected]>

* Update PR link

Signed-off-by: merlinz01 <[email protected]>

* Add test

Signed-off-by: merlinz01 <[email protected]>

* Update docs

Signed-off-by: merlinz01 <[email protected]>

* Add test for default value

Signed-off-by: merlinz01 <[email protected]>

* Fix formatting

Signed-off-by: merlinz01 <[email protected]>

* Fix test failing on Python >3.12.7

Signed-off-by: merlinz01 <[email protected]>

* Fix formatting

Signed-off-by: merlinz01 <[email protected]>

---------

Signed-off-by: merlinz01 <[email protected]>
Signed-off-by: Daniel (dB.) Doubrovkine <[email protected]>
Co-authored-by: Daniel (dB.) Doubrovkine <[email protected]>
2024-11-16 08:29:10 -05:00
samypr100 1269cdc95a feat(AsyncOpenSearch): consistent pool_maxsize setting (#845)
Signed-off-by: samypr100 <[email protected]>
2024-11-12 09:21:32 -05:00
Daniel (dB.) Doubrovkine 6fa54a719a Updated YAML REST tests known to fail. (#838)
Signed-off-by: dblock <[email protected]>
2024-10-24 16:38:00 -04:00
jiangying ad1048be8f fix proxy.md (#837)
* fix proxy.md

Signed-off-by: jiangying <[email protected]>

* Update proxy.md

Signed-off-by: jiangying <[email protected]>

---------

Signed-off-by: jiangying <[email protected]>
2024-10-23 13:58:08 -04:00
dependabot[bot]dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>dependabot[bot] <dependabot[bot]@users.noreply.github.com>
9dd7bf7cb3 Update sphinx requirement from <8.1 to <8.2 (#832)
* Update sphinx requirement from <8.1 to <8.2

Updates the requirements on [sphinx](https://github.com/sphinx-doc/sphinx) to permit the latest version.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v0.1.61611...v8.1.3)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update changelog

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2024-10-14 11:28:20 -04:00
Daniel (dB.) Doubrovkine 44f712e3f0 Fix nox generate (#830)
* Fix: don't rely on a specific plugin for the test.

Signed-off-by: dblock <[email protected]>

* Ignore ISM.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
2024-09-27 11:14:17 -07:00
Étienne Beaulé 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
Daniel (dB.) Doubrovkine 0ccd4173cc Upgrade to aiohttp 3.10.6. (#829)
Signed-off-by: dblock <[email protected]>
2024-09-26 10:52:19 -07:00
CorneeSean 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 45d817289a Update dev guide, lock aiohttp to a version that works. (#828)
* Update developer guide with test setup instructions using OpenSearch 2.12+.

Signed-off-by: dblock <[email protected]>

* Lock down aiohttp to <= 3.10.5.

Signed-off-by: dblock <[email protected]>

* Exclude failing integ test.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
2024-09-25 14:47:22 -07:00
Daniel (dB.) Doubrovkine a24b9f3f3c Fix: generator adds new namespace. (#813)
Signed-off-by: dblock <[email protected]>
2024-08-28 10:07:50 -07:00
borisevich-a-v 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
dependabot[bot]dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>dependabot[bot] <dependabot[bot]@users.noreply.github.com>
aabac84c24 Update pytest-asyncio requirement from <=0.23.8 to <=0.24.0 (#812)
* Update pytest-asyncio requirement from <=0.23.8 to <=0.24.0

Updates the requirements on [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.1.1...v0.24.0)

---
updated-dependencies:
- dependency-name: pytest-asyncio
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update changelog

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2024-08-26 11:18:14 -04:00
Daniel (dB.) Doubrovkine 717122455b Preparing for next developer iteration, 2.7.2. (#807)
Signed-off-by: dblock <[email protected]>
2024-08-22 09:12:37 -07:00
Daniel (dB.) Doubrovkine d54aab4eda Preparing for 2.7.1 release. (#805)
Signed-off-by: dblock <[email protected]>
2024-08-22 11:36:19 -04:00
Jeppe Fihl-Pearson 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
Daniel (dB.) Doubrovkine b994dc4063 Preparing for next developer iteration, 2.7.1. (#802)
Signed-off-by: dblock <[email protected]>
2024-08-20 09:47:02 -07:00
Daniel (dB.) Doubrovkine dbc11371db Prepare for release, 2.7.0. (#799)
* Prepare for release, 2.7.0.

Signed-off-by: dblock <[email protected]>

* Remove references to Jenkins.

Signed-off-by: dblock <[email protected]>

* Update compatibility matrix.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
2024-08-20 08:33:35 -07:00
Daniel (dB.) Doubrovkine 6382c1570c Fix integration tests with unreleased versions of OpenSearch. (#798)
Signed-off-by: dblock <[email protected]>
2024-08-15 08:21:11 -07:00
Daniel (dB.) Doubrovkineandroma2023 377a7f41d1 Finished guide for working with snapshots. (#796)
* Added guide for snapshot API.

Signed-off-by: dblock <[email protected]>

* Added instructions for running sample.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
Co-authored-by: roma2023 <[email protected]>
2024-08-15 07:52:20 -07:00
Daniel (dB.) Doubrovkineandmckirk def00facfb Added support for the bucket aggregation. (#797)
Signed-off-by: dblock <[email protected]>
Co-authored-by: mckirk <[email protected]>
2024-08-15 07:49:58 -07:00
Daniel (dB.) DoubrovkineandPatrick Rice 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
Daniel (dB.) DoubrovkineandVincent Castaneda 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
dependabot[bot]dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>dependabot[bot] <dependabot[bot]@users.noreply.github.com>
19a911387c Update sphinx requirement from <7.5 to <8.1 (#791)
* Update sphinx requirement from <7.5 to <8.1

Updates the requirements on [sphinx](https://github.com/sphinx-doc/sphinx) to permit the latest version.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/v8.0.2/CHANGES.rst)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v0.1.61611...v8.0.2)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update changelog

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2024-08-14 20:08:10 -04:00
Daniel (dB.) Doubrovkine 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
Raphael 581cbbaf10 Fix spell typos and missing whitespace (#789) 2024-07-31 22:23:35 -04:00
Godefroy Amaury de Malefète a68e8b7daf Allow the use of percent string in Bool.__and__ method (#780)
Signed-off-by: Godefroy Amaury de Malefète <[email protected]>
2024-07-25 13:46:50 -04:00
dependabot[bot]dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>dependabot[bot] <dependabot[bot]@users.noreply.github.com>
a029343fb5 Update sphinx requirement from <7.4 to <7.5 (#788)
* Update sphinx requirement from <7.4 to <7.5

Updates the requirements on [sphinx](https://github.com/sphinx-doc/sphinx) to permit the latest version.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v0.1.61611...v7.4.7)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update changelog

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2024-07-22 10:40:24 -04:00
dependabot[bot]dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>dependabot[bot] <dependabot[bot]@users.noreply.github.com>
68f5e654ee Update pytest-asyncio requirement from <=0.23.7 to <=0.23.8 (#787)
* Update pytest-asyncio requirement from <=0.23.7 to <=0.23.8

Updates the requirements on [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.1.1...v0.23.8)

---
updated-dependencies:
- dependency-name: pytest-asyncio
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update changelog

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2024-07-22 10:30:09 -04:00
Hugo van Kemenade e3005b8cff Bump GitHub Actions (#786)
Signed-off-by: Hugo van Kemenade <[email protected]>
2024-07-20 16:20:43 -04:00
Hugo van Kemenade 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 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 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
Daniel (dB.) Doubrovkine 04b870d68a Skip put_aliases tests that don't require both index and alias parameters. (#778)
Signed-off-by: dblock <[email protected]>
2024-07-18 08:44:41 -07:00
opensearch-trigger-bot[bot]andsaimedhi 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
Keith Rozario a380e7083f Update guides-bulk example (#774)
Fixed examples to make them working python code. (missing commas and quotes.

Signed-off-by: Keith Rozario <[email protected]>
2024-07-14 10:27:35 -04:00
opensearch-trigger-bot[bot]andsaimedhi 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
Patrick O'Connor 9ee0b23c63 rc corrected to response (#772)
* rc corrected to response

There seems to be a mistype in the code. I believe it's meant to say response

Signed-off-by: Patrick O'Connor <[email protected]>

* Corrected line 33

Signed-off-by: Patrick O'Connor <[email protected]>

---------

Signed-off-by: Patrick O'Connor <[email protected]>
2024-07-11 22:30:44 -07:00
Vatsal f0bce7cf33 Fixed issue 769:Collapse not preserved when chaining a search instance (#771)
* Fixed issue 769:Collapse not preserved when chaining a search instance

Signed-off-by: vatsal <[email protected]>

* Fixed issue 769:Collapse not preserved when chaining a search instance

Signed-off-by: vatsal <[email protected]>

* Fixed issue 769:Collapse not preserved when chaining a search instance

Signed-off-by: vatsal <[email protected]>

* Fixed issue 769:Collapse not preserved when chaining a search instance

Signed-off-by: vatsal <[email protected]>

* Fixed issue 769:Collapse not preserved when chaining a search instance

Signed-off-by: vatsal <[email protected]>

---------

Signed-off-by: vatsal <[email protected]>
2024-07-09 09:39:19 -07:00
opensearch-trigger-bot[bot]andsaimedhi 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
opensearch-trigger-bot[bot]andsaimedhi 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
Sai Medhini Reddy Maryada b0ca0f8625 Updated compatibility matrix to include latest OpenSearch versions (#765)
Signed-off-by: saimedhi <[email protected]>
2024-06-18 14:56:55 -04:00
Derek Ho d3177a8bcb Pass in initial admin password and remove admin:admin references (#631)
* Update to pass in initial admin password

Signed-off-by: Derek Ho <[email protected]>

* Add changelog and logic to distinguish between versions

Signed-off-by: Derek Ho <[email protected]>

* fix syntax

Signed-off-by: Derek Ho <[email protected]>

* Revert tests

Signed-off-by: Derek Ho <[email protected]>

* Add 2.12 to the matrix and fix testing logic

Signed-off-by: Derek Ho <[email protected]>

* Fix version logic

Signed-off-by: Derek Ho <[email protected]>

* Try to split job into two batches

Signed-off-by: Derek Ho <[email protected]>

* Fix lint

Signed-off-by: Derek Ho <[email protected]>

* Change name

Signed-off-by: Derek Ho <[email protected]>

* Remove period

Signed-off-by: Derek Ho <[email protected]>

* Pull password dynamically

Signed-off-by: Derek Ho <[email protected]>

* Change to proper env var

Signed-off-by: Derek Ho <[email protected]>

* Try passing through

Signed-off-by: Derek Ho <[email protected]>

---------

Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
2024-06-18 11:44:21 -04:00
Krishna babu a1d27ca077 BUG FIX #538 (#760) 2024-06-18 10:59:29 -04:00
opensearch-trigger-bot[bot]andsaimedhi 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
Sai Medhini Reddy Maryada 1739a988d3 Removed deprecated numpy.float_ and update NumPy/Pandas imports (#762)
Signed-off-by: saimedhi <[email protected]>
2024-06-17 15:19:13 -07:00
Daniel (dB.) Doubrovkine 87e531b943 Changed URL for API spec. (#757)
Signed-off-by: dblock <[email protected]>
2024-06-12 21:48:29 -07:00
Sai Medhini Reddy Maryada 1ccc1bcf95 Reduce required approvers for release from 2 to 1 (#755)
Signed-off-by: saimedhi <[email protected]>
2024-05-28 16:10:54 -04:00
Sai Medhini Reddy Maryada 188b6561e7 Bump version to 2.6.0 (#752)
Signed-off-by: saimedhi <[email protected]>
2024-05-24 09:16:19 -07:00