Skip to content

Sort code coverage graph by dates

Frédéric Caplette requested to merge sort-code-coverage-graph-by-dates into master

What does this MR do?

Follow up to #33743 (closed) because we discovered that the graph was rendering in reverse order. The API passed the data in the order on purpose, so we adjust them in the FE.

It's a fairly straightforward change: we add a computed property that sorts the array. We could have opted for using something like reverse since we know it's in descending order, but it feels more robust to do a full on date comparison.

I also added a simple test that check that the mock data, which is now in descending order, gets reverse to the correct order.

Merge request reports