-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[2.x] Restore using the class ClusterInfoRequest and ClusterInfoRequestBuilder from package 'org.opensearch.action.support.master.info' for subclasses (#4307) #4324
Conversation
…der from package 'org.opensearch.action.support.master.info' for subclasses (opensearch-project#4307) * Restore using the class ClusterInfoRequest and ClusterInfoRequestBuilder from package 'org.opensearch.action.support.master.info' for subclasses Signed-off-by: Tianli Feng <[email protected]> * Add changelog Signed-off-by: Tianli Feng <[email protected]> Signed-off-by: Tianli Feng <[email protected]> Co-authored-by: Andrew Ross <[email protected]>
Signed-off-by: Tianli Feng <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## 2.x #4324 +/- ##
============================================
- Coverage 70.61% 70.58% -0.03%
+ Complexity 56935 56919 -16
============================================
Files 4571 4571
Lines 273530 273530
Branches 40111 40111
============================================
- Hits 193147 193078 -69
- Misses 64195 64302 +107
+ Partials 16188 16150 -38
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
How does this work for deprecation? I mean can I write code that takes a dependency on the cluster manager types without ever hitting this? |
@dblock That’s a good question. 😄 I think developers can totally use the classes with name Class |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.2 2.2
# Navigate to the new working tree
cd .worktrees/backport-2.2
# Create a new branch
git switch --create backport/backport-4324-to-2.2
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 7a0ee0859f802b7eaf4352ca53124a7a465367b9
# Push it to GitHub
git push --set-upstream origin backport/backport-4324-to-2.2
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.2 Then, create a pull request where the |
@dblock Thanks for your review! 👏 |
Description
Backport PR #4307 / commit 65f966e into
2.x
branchGetIndexRequest
andGetMappingsRequest
, to extendorg.opensearch.action.support.master.info.ClusterInfoRequest
. The 2 classes are the only subclasses ofClusterInfoRequest
in other packages.GetIndexRequest#indices(java.lang.String[])
is an instance oforg.opensearch.action.support.master.info.ClusterInfoRequest
.Issues Resolved
#4203
Check List
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.