Default code_suggestions to true for new Groups
What does this MR do and why?
- This is the easier/quicker solution to #412397 (closed)
- Using a callback is not ideal, we may want to move to using a different attribute for this setting for groups vs users in the future.
How to set up and validate locally
- Create a new group via GitLab UI.
- Validate in rails console that the
code_suggestions
setting for the new group is set to true:Group.last.namespace_settings.code_suggestions
- Create a new user via the GitLab UI (register new user)
- Validate in rails console that
code_suggestions
setting for the new user is set to false:User.last.namespace.namespace_settings.code_suggestions
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Jessie Young