-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Obs AI Assistant] Query remote indices by default #193462
[Obs AI Assistant] Query remote indices by default #193462
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
@@ -48,7 +48,7 @@ export function registerGetDatasetInfoFunction({ | |||
|
|||
try { | |||
const body = await esClient.asCurrentUser.indices.resolveIndex({ | |||
name: index === '' ? '*' : index.split(','), | |||
name: index === '' ? ['*', '*:*'] : index.split(','), |
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.
Will this only query remote indices if index is not specified? Is that the goal or to always query remote clusters?
I'll mention we've had issues querying * remote clusters in the past with users wanting to specify which remote clusters because it can take a long time if there are many remotes. Perhaps we can have this as a setting at some point.
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.
Will this only query remote indices if index is not specified? Is that the goal or to always query remote clusters?
the former yes
I'll mention we've had issues querying * remote clusters in the past with users wanting to specify which remote clusters because it can take a long time if there are many remotes. Perhaps we can have this as a setting at some point.
This only lists the indices, and then the assistant can pick one for querying, so I think that's usually fine. Agreed a setting would be nice (but also a little wary of having too many settings).
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
History
To update your PR or re-run it, just comment with: cc @dgieselaar |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]
History
cc @dgieselaar |
Starting backport for target branches: 8.17, 8.x https://github.com/elastic/kibana/actions/runs/11974468802 |
Query `[ '*', '*:*' ]` by default when listing indices. Co-authored-by: Elastic Machine <[email protected]> (cherry picked from commit ae31ce1)
Query `[ '*', '*:*' ]` by default when listing indices. Co-authored-by: Elastic Machine <[email protected]> (cherry picked from commit ae31ce1)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…201399) # Backport This will backport the following commits from `main` to `8.x`: - [[Obs AI Assistant] Query remote indices by default (#193462)](#193462) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Dario Gieselaar","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-22T14:27:16Z","message":"[Obs AI Assistant] Query remote indices by default (#193462)\n\nQuery `[ '*', '*:*' ]` by default when listing indices.\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"ae31ce1ea6b69444714e86de1aea0a6fee79e130","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Team:Obs AI Assistant","ci:project-deploy-observability","backport:current-major","v8.17.0"],"title":"[Obs AI Assistant] Query remote indices by default","number":193462,"url":"https://github.com/elastic/kibana/pull/193462","mergeCommit":{"message":"[Obs AI Assistant] Query remote indices by default (#193462)\n\nQuery `[ '*', '*:*' ]` by default when listing indices.\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"ae31ce1ea6b69444714e86de1aea0a6fee79e130"}},"sourceBranch":"main","suggestedTargetBranches":["8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193462","number":193462,"mergeCommit":{"message":"[Obs AI Assistant] Query remote indices by default (#193462)\n\nQuery `[ '*', '*:*' ]` by default when listing indices.\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"ae31ce1ea6b69444714e86de1aea0a6fee79e130"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Dario Gieselaar <[email protected]>
…201398) # Backport This will backport the following commits from `main` to `8.17`: - [[Obs AI Assistant] Query remote indices by default (#193462)](#193462) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Dario Gieselaar","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-22T14:27:16Z","message":"[Obs AI Assistant] Query remote indices by default (#193462)\n\nQuery `[ '*', '*:*' ]` by default when listing indices.\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"ae31ce1ea6b69444714e86de1aea0a6fee79e130","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Team:Obs AI Assistant","ci:project-deploy-observability","backport:current-major","v8.17.0"],"title":"[Obs AI Assistant] Query remote indices by default","number":193462,"url":"https://github.com/elastic/kibana/pull/193462","mergeCommit":{"message":"[Obs AI Assistant] Query remote indices by default (#193462)\n\nQuery `[ '*', '*:*' ]` by default when listing indices.\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"ae31ce1ea6b69444714e86de1aea0a6fee79e130"}},"sourceBranch":"main","suggestedTargetBranches":["8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193462","number":193462,"mergeCommit":{"message":"[Obs AI Assistant] Query remote indices by default (#193462)\n\nQuery `[ '*', '*:*' ]` by default when listing indices.\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"ae31ce1ea6b69444714e86de1aea0a6fee79e130"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Dario Gieselaar <[email protected]>
Query `[ '*', '*:*' ]` by default when listing indices. Co-authored-by: Elastic Machine <[email protected]>
Query `[ '*', '*:*' ]` by default when listing indices. Co-authored-by: Elastic Machine <[email protected]>
Query
[ '*', '*:*' ]
by default when listing indices.