[Backport 2.x] Create SystemIndexRegistry with helper method matchesSystemIndex#14692
Merged
[Backport 2.x] Create SystemIndexRegistry with helper method matchesSystemIndex#14692
Conversation
) * Create new extension point in SystemIndexPlugin for a single plugin to get registered system indices Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add to CHANGELOG Signed-off-by: Craig Perkins <cwperx@amazon.com> * WIP on system indices from IndexNameExpressionResolver Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add test in IndexNameExpressionResolverTests Signed-off-by: Craig Perkins <cwperx@amazon.com> * Remove changes in SystemIndexPlugin Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add method in IndexNameExpressionResolver to get matching system indices Signed-off-by: Craig Perkins <cwperx@amazon.com> * Show how resolver can be chained to get system indices Signed-off-by: Craig Perkins <cwperx@amazon.com> * Fix forbiddenApis check Signed-off-by: Craig Perkins <cwperx@amazon.com> * Update CHANGELOG Signed-off-by: Craig Perkins <cwperx@amazon.com> * Make SystemIndices internal Signed-off-by: Craig Perkins <cwperx@amazon.com> * Remove unneeded changes Signed-off-by: Craig Perkins <cwperx@amazon.com> * Fix CI failures Signed-off-by: Craig Perkins <cwperx@amazon.com> * Fix precommit errors Signed-off-by: Craig Perkins <cwperx@amazon.com> * Use Regex instead of WildcardMatcher Signed-off-by: Craig Perkins <cwperx@amazon.com> * Address code review feedback Signed-off-by: Craig Perkins <cwperx@amazon.com> * Allow caller to pass index expressions Signed-off-by: Craig Perkins <cwperx@amazon.com> * Create SystemIndexRegistry Signed-off-by: Craig Perkins <cwperx@amazon.com> * Update CHANGELOG Signed-off-by: Craig Perkins <cwperx@amazon.com> * Remove singleton limitation Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add javadoc Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add @experimentalapi annotation Signed-off-by: Craig Perkins <cwperx@amazon.com> --------- Signed-off-by: Craig Perkins <cwperx@amazon.com> (cherry picked from commit bf56227) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
reta
approved these changes
Jul 9, 2024
Contributor
kkewwei
pushed a commit
to kkewwei/OpenSearch
that referenced
this pull request
Jul 24, 2024
…nsearch-project#14415) (opensearch-project#14692) * Create new extension point in SystemIndexPlugin for a single plugin to get registered system indices * Add to CHANGELOG * WIP on system indices from IndexNameExpressionResolver * Add test in IndexNameExpressionResolverTests * Remove changes in SystemIndexPlugin * Add method in IndexNameExpressionResolver to get matching system indices * Show how resolver can be chained to get system indices * Fix forbiddenApis check * Update CHANGELOG * Make SystemIndices internal * Remove unneeded changes * Fix CI failures * Fix precommit errors * Use Regex instead of WildcardMatcher * Address code review feedback * Allow caller to pass index expressions * Create SystemIndexRegistry * Update CHANGELOG * Remove singleton limitation * Add javadoc * Add @experimentalapi annotation --------- (cherry picked from commit bf56227) Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Signed-off-by: kkewwei <kkewwei@163.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport bf56227 from #14415.