You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code is causing the issue. if (data._source[dateType]) will pass for an empty list, and failed the following logic. Need to put more restriction on this check. Also, for logic of parsing the only the first elements doesn't seem right. It should parse everything.
zhongnansu
changed the title
[BUG] CSV reports will fail when a date field is an empty
[BUG] CSV reports will fail when a date field is an empty list
Dec 21, 2021
Describe the bug
For example
Root cause
This code is causing the issue.
if (data._source[dateType])
will pass for an empty list, and failed the following logic. Need to put more restriction on this check. Also, for logic of parsing the only the first elements doesn't seem right. It should parse everything.https://github.com/opensearch-project/dashboards-reports/blob/main/dashboards-reports/server/routes/utils/dataReportHelpers.ts#L117-L127
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: