Skip to content

Improve performance of `capped_count_by_severity` scope specs

What does this MR do and why?

This change improves the performance of the capped_count_by_severity scope specs by reducing the number of test records created and creating the test records once for all the specs.

before after
Screenshot_2024-06-12_at_17.30.46 Screenshot_2024-06-12_at_17.41.44

Merge request reports