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

Should not throw exception when using GA with date formatter

XMLWordPrintable

      Steps to reproduce

      1.  Create widget with GA datasupplier attached file
      2.  select chart type: metric number
      3. Dimension: Browser/ metric: Bounce rate 

      .. Logs, screenshots, gifs...

      Expected results

      No error throw and displaying preview widget.. Justify non-trivial expectations with a link to a doc or a relevant discussion.

      Actual results

      Exception throw in console and no preview display even though user select correct data

      java.time.format.DateTimeParseException: Text 'Chrome' could not be parsed at index 0java.time.format.DateTimeParseException: Text 'Chrome' could not be parsed at index 0 at java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:1949) ~[?:1.8.0_191] at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1851) ~[?:1.8.0_191] at java.time.LocalDate.parse(LocalDate.java:400) ~[?:1.8.0_191] at info.magnolia.analytics.google.datasource.GoogleDataSupplierWithDateFormatter.format(GoogleDataSupplierWithDateFormatter.java:84) ~[magnolia-analytics-google-connector-1.2-SNAPSHOT.jar:?] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_191] 
      

      Workaround

      Development notes

        Acceptance criteria

          1. error_log.txt
            21 kB
          2. googleSupplier-2.yaml
            0.5 kB
          3. no_preview.gif
            no_preview.gif
            1.46 MB
          4. Screen Shot 2021-03-05 at 3.25.53 PM.png
            Screen Shot 2021-03-05 at 3.25.53 PM.png
            54 kB

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 6.5h
                    6.5h