mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
# Backport This will backport the following commits from `main` to `8.15`: - [[ES|QL] Fixes FROM suggestions (#187657)](https://github.com/elastic/kibana/pull/187657) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Stratoula Kalafateli","email":"efstratia.kalafateli@elastic.co"},"sourceCommit":{"committedDate":"2024-07-08T11:56:48Z","message":"[ES|QL] Fixes FROM suggestions (#187657)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/187414\r\n\r\n<img width=\"788\" alt=\"image\"\r\nsrc=\"d07e78df
-2439-42ef-91fa-4a950fb94c1f\">","sha":"6f609921ee9b6acc5d132ac2e1bc0180eb82141a","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","Feature:ES|QL","Team:ESQL","v8.15.0","v8.16.0"],"title":"[ES|QL] Fixes FROM suggestions","number":187657,"url":"https://github.com/elastic/kibana/pull/187657","mergeCommit":{"message":"[ES|QL] Fixes FROM suggestions (#187657)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/187414\r\n\r\n<img width=\"788\" alt=\"image\"\r\nsrc=\"d07e78df
-2439-42ef-91fa-4a950fb94c1f\">","sha":"6f609921ee9b6acc5d132ac2e1bc0180eb82141a"}},"sourceBranch":"main","suggestedTargetBranches":["8.15"],"targetPullRequestStates":[{"branch":"8.15","label":"v8.15.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/187657","number":187657,"mergeCommit":{"message":"[ES|QL] Fixes FROM suggestions (#187657)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/187414\r\n\r\n<img width=\"788\" alt=\"image\"\r\nsrc=\"d07e78df
-2439-42ef-91fa-4a950fb94c1f\">","sha":"6f609921ee9b6acc5d132ac2e1bc0180eb82141a"}}]}] BACKPORT--> Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
This commit is contained in:
parent
9ae869c547
commit
49cba8250d
1 changed files with 1 additions and 1 deletions
|
@ -858,7 +858,7 @@ async function getExpressionSuggestionsByType(
|
|||
} else {
|
||||
const index = getSourcesFromCommands(commands, 'index');
|
||||
// This is going to be empty for simple indices, and not empty for integrations
|
||||
if (index && index.text) {
|
||||
if (index && index.text && index.text !== EDITOR_MARKER) {
|
||||
const source = index.text.replace(EDITOR_MARKER, '');
|
||||
const dataSource = await getDatastreamsForIntegration(source);
|
||||
const newDefinitions = buildSourcesDefinitions(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue