Rename User.ci_owned_runners

What does this MR do and why?

This MR renames User.ci_owned_runners and User.owns_runner? to User.ci_available_runners and User.runner_available?. The term available was chosen since it is already used in the documentation.

The reason for this change is that before the introduction of a runner owner project, all projects associated to the runner would provide a user with ownership to the runner. Now that we have the concept of a runner owner project, the naming no longer makes sense, and a separate check is needed to determine if the project runner is actually owned by the user through maintainership of the owner project (to be taken care of in a follow-up MR).

References

Indirect maintainer permissions no longer suffi... (#502634 - closed)

MR acceptance checklist

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

Edited by Pedro Pombeiro

Merge request reports

Loading