-
Notifications
You must be signed in to change notification settings - Fork 140
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
CatIndexTool implementation #1582
CatIndexTool implementation #1582
Conversation
Test failures unassociated with this PR:
Tests pass locally:
|
if (parameters.containsKey("indices")) { | ||
@SuppressWarnings("unchecked") | ||
List<String> indexList = gson.fromJson(parameters.get("indices"), List.class); | ||
indices = indexList.toArray(new String[0]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if a request comes to cat an system index?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh. Looks like I need to use the getSettings approach here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed to match REST API
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
7d1741c
into
opensearch-project:feature/agent_framework_dev
Updated version of awssdk (opensearch-project#1605) (opensearch-project#1606) Signed-off-by: Owais Kazi <[email protected]> (cherry picked from commit 7e44eb2) Co-authored-by: Owais Kazi <[email protected]> create agent Signed-off-by: Jing Zhang <[email protected]> CatIndexTool implementation (opensearch-project#1582) * CatIndexTool implementation Signed-off-by: Daniel Widdis <[email protected]> * Match implementation to REST API to respect index permissions Signed-off-by: Daniel Widdis <[email protected]> * Javadoc fixes Signed-off-by: Daniel Widdis <[email protected]> * Reduce fields to exactly match _cat/indices Signed-off-by: Daniel Widdis <[email protected]> * Add TODO, clean up unused code/imports Signed-off-by: Daniel Widdis <[email protected]> * Rebase with upstream Signed-off-by: Daniel Widdis <[email protected]> * Remove alias getters/setters accidentally kept when rebasing Signed-off-by: Daniel Widdis <[email protected]> * Update test json format to list Signed-off-by: Daniel Widdis <[email protected]> * Remove unused modelId Signed-off-by: Daniel Widdis <[email protected]> --------- Signed-off-by: Daniel Widdis <[email protected]> Signed-off-by: Arjun kumar Giri <[email protected]>
#1611) * Add support for including intermediay tool response to agent response Signed-off-by: Arjun kumar Giri <[email protected]> * Add include intermediary response support to react agent runner Signed-off-by: Arjun kumar Giri <[email protected]> * Rebase from upstream Updated version of awssdk (#1605) (#1606) Signed-off-by: Owais Kazi <[email protected]> (cherry picked from commit 7e44eb2) Co-authored-by: Owais Kazi <[email protected]> create agent Signed-off-by: Jing Zhang <[email protected]> CatIndexTool implementation (#1582) * CatIndexTool implementation Signed-off-by: Daniel Widdis <[email protected]> * Match implementation to REST API to respect index permissions Signed-off-by: Daniel Widdis <[email protected]> * Javadoc fixes Signed-off-by: Daniel Widdis <[email protected]> * Reduce fields to exactly match _cat/indices Signed-off-by: Daniel Widdis <[email protected]> * Add TODO, clean up unused code/imports Signed-off-by: Daniel Widdis <[email protected]> * Rebase with upstream Signed-off-by: Daniel Widdis <[email protected]> * Remove alias getters/setters accidentally kept when rebasing Signed-off-by: Daniel Widdis <[email protected]> * Update test json format to list Signed-off-by: Daniel Widdis <[email protected]> * Remove unused modelId Signed-off-by: Daniel Widdis <[email protected]> --------- Signed-off-by: Daniel Widdis <[email protected]> Signed-off-by: Arjun kumar Giri <[email protected]> * Revert "Rebase from upstream" This reverts commit 49cff61. Signed-off-by: Arjun kumar Giri <[email protected]> * Add unit tests Signed-off-by: Arjun kumar Giri <[email protected]> * Rebase upstream changes Signed-off-by: Arjun kumar Giri <[email protected]> * Fixed PR feedback Signed-off-by: Arjun kumar Giri <[email protected]> --------- Signed-off-by: Arjun kumar Giri <[email protected]> Signed-off-by: Daniel Widdis <[email protected]> Signed-off-by: arjunkumargiri <[email protected]> Co-authored-by: Arjun kumar Giri <[email protected]> Co-authored-by: Yaliang Wu <[email protected]>
Description
Implements Cat Index Tool with edge case handling and tests
Issues Resolved
Fixes #1547
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.