Follow-up for project-defined dashboard shows 'no data found' issue
Summary
This is a follow-up issue following the conversation here !16589 (comment 219572792). The current issue should be worked on only after this is resolved !17151 (merged)
Improvements
There is an additional check for chart.id here https://gitlab.com/gitlab-org/gitlab-foss/blob/master/app/assets/javascripts/monitoring/stores/utils.js#L49 which should not be needed after the normalizeMetric got introduced in this MR.
This can be improved to check only for chart.metricId.
Risks
There are no risks as this stage.
Involved components
This line should be changed https://gitlab.com/gitlab-org/gitlab-foss/blob/master/app/assets/javascripts/monitoring/stores/utils.js#L49
Optional: Intended side effects
Optional: Missing test coverage
/cc @jivanvl