Skip to content

Commit

Permalink
[ES|QL][Inspector] Display cluster details tab for CCS data sources (e…
Browse files Browse the repository at this point in the history
…lastic#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)
  • Loading branch information
stratoula authored Oct 10, 2024
1 parent 0caea22 commit a6e22cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/data/common/search/expressions/esql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export const getEsqlFn = ({ getStartDependencies }: EsqlFnArguments) => {
}),
})
.json(params)
.ok({ json: rawResponse, requestParams });
.ok({ json: { rawResponse }, requestParams });
},
error(error) {
logInspectorRequest()
Expand Down

0 comments on commit a6e22cf

Please sign in to comment.