Skip to content

Move `extra_shared_runners_minutes_used?` to `Quota#minutes_used_up?`

Fabio Pitino requested to merge ci-minutes-refactoring-drop-migrated-method into master

What does this MR do?

Related to #213964 (closed)

The goal of this refactoring is to:

  • Drop Namespace#extra_shared_runners_minutes_used? as it was already ported to Ci::Minutes::Quota#purchased_minutes_used_up? in previous refactorings.
  • Port Namespace#shared_runners_minutes_used? to Ci::Minutes::Quota#minutes_used_up?.
  • Migrate any instances of Namespace#shared_runners_minutes_used? and drop the method.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by 🤖 GitLab Bot 🤖

Merge request reports