Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
None
-
-
Empty show more show less
-
Add-Ons 56
-
5
Description
Steps to reproduce
- Â Please use the dummy-matomo.json and dummyMatomoDataSupplier.yaml attached in your light module
- Â Build custom widget -> select dummy data
- Dimension: metadata.documentation
- Metric: reportData.nb_actions
OR you can choose these options from Dummy ABTesting
.. Logs, screenshots, gifs...
Expected results
- Preferred option --> remove invalid option from combobox.
- Fallback option --> Show error notification message for user
Actual results
Console throw exception
2021-01-13 13:39:31,919 ERROR gnolia.analytics.amcharts.vaadin.AmChartsComponent: There is an error while fetching chart component data.2021-01-13 13:39:31,919 ERROR gnolia.analytics.amcharts.vaadin.AmChartsComponent: There is an error while fetching chart component data.java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List at info.magnolia.analytics.amcharts.data.JsonDataTransformer.transformToDataFieldsValues(JsonDataTransformer.java:92) ~[magnolia-analytics-amcharts-1.2-SNAPSHOT.jar:?] at info.magnolia.analytics.amcharts.data.JsonDataTransformer.transformData(JsonDataTransformer.java:74) ~[magnolia-analytics-amcharts-1.2-SNAPSHOT.jar:?] at info.magnolia.analytics.amcharts.vaadin.AmChartsComponent.fetchAndSetData(AmChartsComponent.java:193)
Workaround
Development notes
- Propose config to ignore incompatible data.
Checklists
Acceptance criteria