[ANALYTICS-286] [Matomo/Adobe] Select metric after adding series does not display preview widget correctly Created: 23/Dec/20  Updated: 05/Jan/21  Resolved: 04/Jan/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: Oanh Thai Hoang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 5d 5h 55m
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: UI/UX Dash improvements
Sprint: Add-Ons 54
Story Points: 5

 Description   

Steps to reproduce

  1.  Build custom widget
  2.  Select Matomo data supplier
  3. Select dimension/metric => preview widget display correct data
  4. Click "Add series"
  5. Select value for metric

.. Logs, screenshots, gifs...

Expected results

Preview widget should display correct value for the first and second metric .

Actual results

Preview widget display double data for the first metric

Workaround

Development notes

The issue only happened with UI version 6.2.2

Happen at line 134 of info.magnolia.analytics.ui.app.fields.ChartTypeFormView#callWriteForm

this.write(chartDefinition);

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