From 1e1916d7fed1395cac17a0630771bd0008dc8e21 Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Thu, 10 Oct 2024 13:33:41 +0200 Subject: [PATCH] [ES|QL][Inspector] Display cluster details tab for CCS data sources (#195373) ## Summary It displays correctly the cluster details if they come in the response. To test it you will need a CCS index as the `_clusters` property only comes for these indexes. Other than that it just works out of the bloom as the response is exactly the same as the search api. If we were sending the response correctly in the inspector (it wants: `rawResonse: {....}` and not just the response as we get it), it would have worked without any change from our side. ![image (63)](https://github.com/user-attachments/assets/c3a93616-4a6d-468c-8968-e1f1692cffc1) (cherry picked from commit a6e22cf581975cab828b62926484dc2104a19432) --- src/plugins/data/common/search/expressions/esql.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/data/common/search/expressions/esql.ts b/src/plugins/data/common/search/expressions/esql.ts index b6cb039683c9b..966500710fd45 100644 --- a/src/plugins/data/common/search/expressions/esql.ts +++ b/src/plugins/data/common/search/expressions/esql.ts @@ -289,7 +289,7 @@ export const getEsqlFn = ({ getStartDependencies }: EsqlFnArguments) => { }), }) .json(params) - .ok({ json: rawResponse, requestParams }); + .ok({ json: { rawResponse }, requestParams }); }, error(error) { logInspectorRequest()