Pipeline usage quota shown as "undefined/undefined"

Summary

We received a report from a customer stating that on Self-Manged instances, the CI/CD minutes usage quota in the top-level group is shown as "undefined/undefined". This happens even if the projects within the top-level group have used minutes. It also happens even if the group has a quota limit set. I was able to reproduce this with my test instance.

Steps to reproduce

  • Create a project within a group on a SM instance.
  • Run a pipeline in the project for at least 60 seconds. A single job with sleep 60 should to the trick.
  • Go to the top-level group and navigate to: Settins -> Usage Quotas and select the Pipelines tab.
  • Notice how the CI/CD minutes usage quota shows up.

What is the current bug behavior?

The CI/CD minutes usage quota in the top-level group is shown as "undefined/undefined".

What is the expected correct behavior?

The CI/CD minutes usage quota in the top-level group show up as "<ci_minutes_used> / <ci_minutes_left_to_use>".

Relevant logs and/or screenshots

The bug

Screenshot_2023-04-07_at_15.49.51

Edited by Bruno Freitas