Skip to content

Default code_suggestions to true for new Groups

Jessie Young requested to merge jy-default-setting-code-suggestions into master

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

  1. Create a new group via GitLab UI.
  2. Validate in rails console that the code_suggestions setting for the new group is set to true: Group.last.namespace_settings.code_suggestions
  3. Create a new user via the GitLab UI (register new user)
  4. 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.

Edited by Jessie Young

Merge request reports