Skip to content

refactor: Extract GetUsageByProjectService

What does this MR do and why?

In preparation for the API for CI compute minute breakdown by project (#437658 - closed), this MR extracts the aggregation logic from the service generating csv.

Other changes:

  • simplified SQL a bit
  • added rounding to minutes (also in SQL)
    • fixed formatter to Nullable types

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Vladimir Shushlin

Merge request reports