Insights charts are rendered in the order of their data is retrieved instead of respecting the order from the config
I have the following Insights tab configuration:
bugs:
title: Bugs Dashboard
charts:
- title: Bugs by Priority (pie)
type: pie
query:
issuable_type: issue
filter_labels:
- bug
collection_labels:
- priority::1
- priority::2
- priority::3
- priority::4
- title: Bugs by Severity (pie)
type: pie
query:
issuable_type: issue
filter_labels:
- bug
collection_labels:
- severity::1
- severity::2
- severity::3
- severity::4
- title: Monthly bugs created
type: bar
query:
issuable_type: issue
filter_labels:
- bug
group_by: month
- title: Bugs by Priority (bar)
type: bar
query:
issuable_type: issue
filter_labels:
- bug
collection_labels:
- priority::1
- priority::2
- priority::3
- priority::4
- title: Bugs by Severity (bar)
type: bar
query:
issuable_type: issue
filter_labels:
- bug
collection_labels:
- severity::1
- severity::2
- severity::3
- severity::4
but then the charts order is never the same. It seems to depend on when the data are received from the backend:
I would expect the pie charts to always be displayed at the top, followed by the bar charts (following the order defined in the YAML).