[ANALYTICS-320] Should not throw exception when using GA with date formatter Created: 05/Mar/21  Updated: 12/Apr/21  Resolved: 09/Apr/21

Status: Closed
Project: Analytics
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2

Type: Bug Priority: Neutral
Reporter: Yen Lac Tue Assignee: Yen Lac Tue
Resolution: Fixed Votes: 0
Labels: VN-Implementation, VN-Testing
Remaining Estimate: Not Specified
Time Spent: 6.5h
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2021-03-05 at 3.25.53 PM.png     Text File error_log.txt     File googleSupplier-2.yaml     GIF File no_preview.gif    
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Epic Link: UI/UX Dash improvements
Sprint: Content Mngmt 01
Story Points: 5

 Description   

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


Generated at Sun Feb 11 23:17:44 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.