Sorted terraform reports doesn't handle reports with no changes
Summary
After the implementation of !183300 (merged) went live, which I did, it was clear it wasn't working correctly. Reports with no adds, no updates, and no removes are being sorted to the top.
Steps to reproduce
- Run a pipeline with multiple terraform reports
- Notice that reports with 0/0/0 are sorted above reports with any adds, updates, or removes
What is the current bug behavior?
Reports with 0/0/0 are at the top of the sorted list
What is the expected correct behavior?
Reports with 0/0/0 should be at the bottom of the sorted list
Possible fixes
I'll make an MR, but it turns out in javascript (0 + 0 + 0) || 10 results in 10, not 0. Woops.