Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support inclusive #65

Merged
merged 3 commits into from
Sep 30, 2022
Merged

Conversation

shyim
Copy link
Collaborator

@shyim shyim commented Jun 21, 2022

Description

Add inclusive names

Issues Resolved

#61

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@shyim shyim requested review from a team and paulborgermans as code owners June 21, 2022 17:55
Copy link
Collaborator

@VachaShah VachaShah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @shyim for adding these changes!

There are some more references in https://github.com/opensearch-project/opensearch-php/blob/main/tests/Connections/ConnectionTest.php. Can we replace them as well?

@shyim
Copy link
Collaborator Author

shyim commented Jun 24, 2022

Sure I will look later :)

@shyim shyim force-pushed the support-inclusive branch 6 times, most recently from 6e25b66 to 4c4beb1 Compare June 27, 2022 20:31
@shyim shyim requested a review from VachaShah June 29, 2022 20:01
VachaShah
VachaShah previously approved these changes Jul 5, 2022
Copy link
Collaborator

@VachaShah VachaShah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @shyim!

@shyim shyim requested a review from VijayanB July 6, 2022 17:00
@VachaShah
Copy link
Collaborator

@dblock @saratvemulapalli review please?

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this code stop working against older versions of OpenSearch? It looks like it. In order to ensure the client is compatible with at least two major versions and thus allow a migration path, I think we need to deprecate functionality in 1 major release, then remove it in the next major release. So I think in this change we cannot throw errors, we need to log a warning for the deprecation.

src/OpenSearch/Endpoints/AbstractEndpoint.php Show resolved Hide resolved
src/OpenSearch/Endpoints/Cat/Allocation.php Show resolved Hide resolved
tests/Endpoints/AbstractEndpointTest.php Outdated Show resolved Hide resolved
@shyim shyim force-pushed the support-inclusive branch 2 times, most recently from 1baf3d8 to 5c60d7c Compare July 22, 2022 08:27
shyim added 3 commits July 22, 2022 10:34
Signed-off-by: Soner Sayakci <[email protected]>
Signed-off-by: Soner Sayakci <[email protected]>
Signed-off-by: Soner Sayakci <[email protected]>
@shyim shyim force-pushed the support-inclusive branch from 5c60d7c to 4757473 Compare July 22, 2022 08:36
@shyim shyim requested a review from dblock September 18, 2022 10:58
@shyim shyim requested a review from VachaShah September 26, 2022 18:59
@dblock
Copy link
Member

dblock commented Sep 29, 2022

@shyim See my question above though, what's the definite answer?

@shyim
Copy link
Collaborator Author

shyim commented Sep 29, 2022

@dblock ohh I didn't see that.
No, I just added the new parameter to all whitelist sections.

The old parameter will be still send, but throws just a deprecation with the replacement :)

@dblock
Copy link
Member

dblock commented Sep 29, 2022

Ok, I think this works.

Copy link
Collaborator

@VachaShah VachaShah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you @shyim

@VachaShah VachaShah merged commit 85c5731 into opensearch-project:main Sep 30, 2022
@shyim shyim deleted the support-inclusive branch September 30, 2022 05:49
joanna-bak-sourceability pushed a commit to joanna-bak-sourceability/opensearch-php that referenced this pull request Feb 10, 2023
* feat: add cluster manager api

Signed-off-by: Soner Sayakci <[email protected]>

* feat: deprecate master_timeout

Signed-off-by: Soner Sayakci <[email protected]>

* feat: update all comments

Signed-off-by: Soner Sayakci <[email protected]>

Signed-off-by: Soner Sayakci <[email protected]>
Signed-off-by: joanna.bak <[email protected]>
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.

3 participants