refactor: Re-organize the delegates to namespace_settings from group

What does this MR do and why?

refactor: Re-organize the delegates to namespace_settings from group

  • Consolidate delegate calls in Group model using multi-line syntax for better readability and maintainability of delegation patterns
  • Replace custom normalize_default_branch_name with the utility module NullifyIfBlank

While working on other MRs, I noticed this potential for refactoring, e.g. !199423 (merged)

Changelog: other

🛠️ with ❤️ at Siemens

References

Screenshots or screen recordings

Only refactoring changes in the backend . No change in behavior.

How to set up and validate locally

  1. Run the tests
bundle exec rspec spec/models/namespace_setting_spec.rb spec/models/group_spec.rb

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.

MR Checklist (@gerardo-navarro)
Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading