From 05fcdd8a5674cfaa70546ef2af9b8b0fa44116bf Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 21 Jan 2021 11:31:28 +0100 Subject: [PATCH] [Search Sessions] Add searchSessionId to Vega's inspector (#88839) --- src/plugins/vis_type_vega/public/data_model/search_api.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/vis_type_vega/public/data_model/search_api.ts b/src/plugins/vis_type_vega/public/data_model/search_api.ts index 4cb2a6119a2be..2d47102705139 100644 --- a/src/plugins/vis_type_vega/public/data_model/search_api.ts +++ b/src/plugins/vis_type_vega/public/data_model/search_api.ts @@ -45,7 +45,10 @@ export class SearchAPI { }); if (this.inspectorAdapters) { - requestResponders[requestId] = this.inspectorAdapters.requests.start(requestId, request); + requestResponders[requestId] = this.inspectorAdapters.requests.start(requestId, { + ...request, + searchSessionId: this.searchSessionId, + }); requestResponders[requestId].json(params.body); }