Skip to content

[Backport 2.x] Create SystemIndexRegistry with helper method matchesSystemIndex#14692

Merged
reta merged 1 commit into2.xfrom
backport/backport-14415-to-2.x
Jul 9, 2024
Merged

[Backport 2.x] Create SystemIndexRegistry with helper method matchesSystemIndex#14692
reta merged 1 commit into2.xfrom
backport/backport-14415-to-2.x

Conversation

@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

Backport bf56227 from #14415.

)

* 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>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 9, 2024

✅ Gradle check result for 6f076c9: SUCCESS

@reta reta merged commit a4a6bb8 into 2.x Jul 9, 2024
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>
@dbwiddis dbwiddis deleted the backport/backport-14415-to-2.x branch July 24, 2024 16:04
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.

1 participant