Skip to content

Commit 71006bd

Browse files
authored
[ES|QL] Better handling of ccs and local sources in the registry (elastic#223365)
## Summary Small fix on the way we are concatenating the 2 sources (local and ccs). Previously if one of the sources was empty such as ``` { indices: [], data_streams: [], aliases: [] } ``` would return wrongly empty extensions.
1 parent 70a2da8 commit 71006bd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/platform/plugins/shared/esql/server/routes/get_esql_extensions_route.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ export const registerESQLExtensionsRoute = (
7979
})) as ResolveIndexResponse;
8080

8181
const sources = {
82-
...localSources,
83-
...ccsSources,
82+
indices: [...(localSources.indices ?? []), ...(ccsSources.indices ?? [])],
83+
aliases: [...(localSources.aliases ?? []), ...(ccsSources.aliases ?? [])],
84+
data_streams: [...(localSources.data_streams ?? []), ...(ccsSources.data_streams ?? [])],
8485
};
8586

8687
// Validate solutionId

0 commit comments

Comments
 (0)