diff --git a/kibana.json b/kibana.json index abc3b98..2fb4c7e 100644 --- a/kibana.json +++ b/kibana.json @@ -1,6 +1,9 @@ { "id": "excelExport", - "version": "1.0.0", + "owner": { + "name": "excelExport" + }, + "version": "8.6.2", "kibanaVersion": "kibana", "server": false, "ui": true, 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,