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_groupsinstead of duplicating the logic inside the method - Rename variables to exclude the
all_prepending as it seemed un-necessary
References
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