Uploaded image for project: 'Analytics'
  1. Analytics
  2. ANALYTICS-289

JsonDataTransformer should filter ignore incompatible data

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • None
    • None
    • None

    Description

      Steps to reproduce

      1.  Please use the dummy-matomo.json and dummyMatomoDataSupplier.yaml attached in your light module
      2.  Build custom widget -> select dummy data
      3. Dimension: metadata.documentation
      4. Metric: reportData.nb_actions

      OR you can choose these options from Dummy ABTesting

      .. Logs, screenshots, gifs...

      Expected results

      1. Preferred option --> remove invalid option from combobox.
      1. 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

        Attachments

          1. dummy_matomo.json
            6 kB
          2. dummyABTesting.png
            dummyABTesting.png
            134 kB
          3. dummyMatomoDataSupplier.yaml
            0.1 kB
          4. jsontransform_error-1.txt
            43 kB

          Activity

            People

              yen.lactue Yen Lac Tue
              yen.lactue Yen Lac Tue
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 3d 7h 52m
                    3d 7h 52m