Skip to content

Sort metrics in metrics report MR widget

What does this MR do?

For #260388 (closed)

Sort the metrics in the metrics report MR widget in the following order:

  1. changed: the metric has a different value in the head report compared to the base report (string compare)
  2. new: the metric exists in the head report, but doesn't exist in the base report
  3. removed: the metric exists in the base report, but doesn't exist in the head report
  4. unchanged: the metric has the same value in the head report as it does in the base report

Note: I initially misinterpreted #260388 (closed) and made !54729 (merged), which separated changed and unchanged existing metrics, but didn't put them in the order described in the issue

Screenshots

before after !54729 (merged) after this MR
order new, existing, removed new, changed existing, unchanged existing, removed changed existing, new, removed, unchanged existing
screenshot image Screen_Shot_2021-02-19_at_14.21.45 Screen_Shot_2021-02-25_at_11.43.17

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Miranda Fluharty

Merge request reports