Only last of duplicated metrics dashboards panel are feed with data

Summary

On metrics dashboard when at least two panels within single group has the same title only one will be fed with data.

Steps to reproduce

  1. Create custom dashboard definition in yml following instructions but duplicate one (or more) panel within one of panel groups
  2. Commit yml file into repository
  3. Visit metrics section and select newly defined dashboard

Example Project

https://gitlab.com/gitlab-org/monitor/monitor-sandbox/-/environments/711946/metrics?dashboard=.gitlab%2Fdashboards%2Fduplicated_panels_issue.yml

What is the current bug behavior?

Only last of duplicated panels gets fed with data.

What is the expected correct behavior?

All panels are fed with data, regardless if they are duplicated or not

Relevant logs and/or screenshots

Screenshot_2020-03-04_at_15.37.26

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Edited Mar 04, 2020 by Mikołaj Wawrzyniak
Assignee Loading
Time tracking Loading