From c65d851a2b35a61f80e2e82d690cda95ef1414c8 Mon Sep 17 00:00:00 2001 From: Nandini MD Date: Tue, 4 Apr 2023 15:31:46 +0530 Subject: [PATCH 1/3] Updated: SaveSearch API to work with 8.6 --- kibana.json | 3 +++ public/panel_action/get_excel_panel_action.ts | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/kibana.json b/kibana.json index abc3b98..bfbecb0 100644 --- a/kibana.json +++ b/kibana.json @@ -1,5 +1,8 @@ { "id": "excelExport", + "owner": { + "name": "excelExport" + }, "version": "1.0.0", "kibanaVersion": "kibana", "server": false, diff --git a/public/panel_action/get_excel_panel_action.ts b/public/panel_action/get_excel_panel_action.ts index c3ed229..9848ef8 100644 --- a/public/panel_action/get_excel_panel_action.ts +++ b/public/panel_action/get_excel_panel_action.ts @@ -50,8 +50,8 @@ export class GetExcelPanelAction implements ActionDefinition { const { getSharingData } = await loadSharingDataHelpers(); return await getSharingData( savedSearch.searchSource, - savedSearch, // TODO: get unsaved state (using embeddale.searchScope): https://github.com/elastic/kibana/issues/43977 - this.core.uiSettings + savedSearch, // TODO: get unsaved state (using embeddable.searchScope): https://github.com/elastic/kibana/issues/43977 + embeddable.services ); } @@ -67,13 +67,13 @@ export class GetExcelPanelAction implements ActionDefinition { } const savedSearch = embeddable.getSavedSearch(); - const { columns, searchSource } = await this.getSearchSource(savedSearch, embeddable); + const { columns, getSearchSource } = await this.getSearchSource(savedSearch, embeddable); const kibanaTimezone = this.core.uiSettings.get('dateFormat:tz'); const browserTimezone = kibanaTimezone === 'Browser' ? moment.tz.guess() : kibanaTimezone; const immediateJobParams: JobParamsDownloadCSV = { - searchSource, + searchSource: getSearchSource(), columns, browserTimezone, title: savedSearch.title, From f0f8efa788af0cad30863ac90248615a40ae3baf Mon Sep 17 00:00:00 2001 From: Nandini MD Date: Thu, 6 Apr 2023 16:43:20 +0530 Subject: [PATCH 2/3] Changes version from 1.0.0 to 8.6.0 to be compatible with Kibana --- kibana.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibana.json b/kibana.json index bfbecb0..a90294e 100644 --- a/kibana.json +++ b/kibana.json @@ -3,7 +3,7 @@ "owner": { "name": "excelExport" }, - "version": "1.0.0", + "version": "8.6.0", "kibanaVersion": "kibana", "server": false, "ui": true, From a37004317ee7e233a2eef861314b12f785e88234 Mon Sep 17 00:00:00 2001 From: Nandini MD Date: Tue, 11 Apr 2023 14:40:21 +0530 Subject: [PATCH 3/3] Changes version from 8.6.0 to 8.6.2 to be compatible with Kibana --- kibana.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibana.json b/kibana.json index a90294e..2fb4c7e 100644 --- a/kibana.json +++ b/kibana.json @@ -3,7 +3,7 @@ "owner": { "name": "excelExport" }, - "version": "8.6.0", + "version": "8.6.2", "kibanaVersion": "kibana", "server": false, "ui": true,