Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Cannot download as CSV when Store URLs in session storage is active #343

Closed
mxmorin opened this issue Mar 17, 2021 · 3 comments
Closed

Cannot download as CSV when Store URLs in session storage is active #343

mxmorin opened this issue Mar 17, 2021 · 3 comments
Labels
bug Something isn't working csv

Comments

@mxmorin
Copy link

mxmorin commented Mar 17, 2021

When Store URLs in session storage option is set in Advanced Settings, cannot download saved query as CSV.
Js errors is thrown :
Uncaught TypeError: Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method. at _nonIterableRest (:5601/36136/bundles/plugin/opendistroReportsKibana/opendistroReportsKibana.plugin.js:1) at _slicedToArray (:5601/36136/bundles/plugin/opendistroReportsKibana/opendistroReportsKibana.plugin.js:1) at getTimeFieldsFromUrl (:5601/36136/bundles/plugin/opendistroReportsKibana/opendistroReportsKibana.plugin.js:1) at contextMenuCreateReportDefinition (:5601/36136/bundles/plugin/opendistroReportsKibana/opendistroReportsKibana.plugin.js:1) at HTMLButtonElement.<anonymous> (:5601/36136/bundles/plugin/opendistroReportsKibana/opendistroReportsKibana.plugin.js:1) at HTMLDocument.dispatch (:5601/36136/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:404) at HTMLDocument.m.handle (:5601/36136/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:404)

getTimeFieldsFromUrl function is waiting for a timestamp in the url which is not present when Store URLs in session storage is active

@alexz00
Copy link

alexz00 commented Mar 18, 2021

I experienced the same issue with the same error.

@zhongnansu
Copy link
Member

We'll take a look. This advanced setting is something that we were not aware of.

@zhongnansu
Copy link
Member

This issue is moved to opensearch-project/reporting#19

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working csv
Projects
None yet
Development

No branches or pull requests

3 participants