Refactor Project#enforced_runner_token_expiration_interval method

What does this MR do and why?

  • Refactor the Project model to make it DRY
  • Reuse the existing method parent_groups instead of duplicating the logic inside the method
  • Rename variables to exclude the all_ prepending as it seemed un-necessary

References

#439981 (closed)

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.

Edited by Jayakrishnan Mallissery

Merge request reports

Loading