-
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
Expose RestController all handlers iterator. #11876
Expose RestController all handlers iterator. #11876
Conversation
Compatibility status:Checks if related components are compatible with change 80063d9 Incompatible componentsIncompatible components: [https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/cross-cluster-replication.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/alerting.git] |
❕ Gradle check result for 7f5349b: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #11876 +/- ##
============================================
+ Coverage 71.33% 71.47% +0.13%
- Complexity 59362 59433 +71
============================================
Files 4923 4923
Lines 279189 279212 +23
Branches 40591 40595 +4
============================================
+ Hits 199169 199560 +391
+ Misses 63449 63032 -417
- Partials 16571 16620 +49 ☔ View full report in Codecov by Sentry. |
|
Signed-off-by: dblock <[email protected]>
Signed-off-by: dblock <[email protected]>
Signed-off-by: dblock <[email protected]>
cc5133a
to
80063d9
Compare
❌ Gradle check result for 80063d9: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 80063d9: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 80063d9: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❕ Gradle check result for 80063d9: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-11876-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 6ccb46ba04b5d295af4c4da884068f1a5cf6cfba
# Push it to GitHub
git push --set-upstream origin backport/backport-11876-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.x Then, create a pull request where the |
* Expose RestController all handlers iterator. Signed-off-by: dblock <[email protected]> * Extract MethodHandlers interface. Signed-off-by: dblock <[email protected]> * Added CHANGELOG. Signed-off-by: dblock <[email protected]> --------- Signed-off-by: dblock <[email protected]> (cherry picked from commit 6ccb46b)
* Expose RestController all handlers iterator. Signed-off-by: dblock <[email protected]> * Extract MethodHandlers interface. Signed-off-by: dblock <[email protected]> * Added CHANGELOG. Signed-off-by: dblock <[email protected]> --------- Signed-off-by: dblock <[email protected]> (cherry picked from commit 6ccb46b)
* Expose RestController all handlers iterator. Signed-off-by: dblock <[email protected]> * Extract MethodHandlers interface. Signed-off-by: dblock <[email protected]> * Added CHANGELOG. Signed-off-by: dblock <[email protected]> --------- Signed-off-by: dblock <[email protected]> (cherry picked from commit 6ccb46b)
…ch#11876. Signed-off-by: dblock <[email protected]>
* Expose RestController all handlers iterator. Signed-off-by: dblock <[email protected]> * Extract MethodHandlers interface. Signed-off-by: dblock <[email protected]> * Added CHANGELOG. Signed-off-by: dblock <[email protected]> --------- Signed-off-by: dblock <[email protected]>
* Expose RestController all handlers iterator. Signed-off-by: dblock <[email protected]> * Extract MethodHandlers interface. Signed-off-by: dblock <[email protected]> * Added CHANGELOG. Signed-off-by: dblock <[email protected]> --------- Signed-off-by: dblock <[email protected]>
* Expose RestController all handlers iterator. Signed-off-by: dblock <[email protected]> * Extract MethodHandlers interface. Signed-off-by: dblock <[email protected]> * Added CHANGELOG. Signed-off-by: dblock <[email protected]> --------- Signed-off-by: dblock <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
Coming from #11843, expose just enough methods to be able to move that plugin implementation out of OpenSearch core.
PathTrie#retrieveAll
, an lazy-ish exhaustive iterator traversing the trie structure.MethodHandlers#getPath
andgetValidMethods
.RestController#getAllHandlers()
returning a method handlers iterator.Related Issues
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.