Skip to content

Added new_user_signups_cap to setting update service

Etienne Baqué requested to merge 332590-user-cap-in-update-service into master

What does this MR do?

Related to #332590 (closed)

This MR adds some logic to make NamespaceSetting#new_user_signups_cap updatable via the NamespaceSetings::UpdateService class.

Based on this design, the User cap will be a setting within the Permissions, LFS, 2FA section. Which means that, upon this form submission, handle_namespace_settings will be triggered, which will manage all updates at the namespace_settings level.

This MR is also inspired by some changes made on the recent addition of NamespaceSetting::prevent_sharing_groups_outside_hierarchy. As a result, some refactoring in some tests was done as part of this MR.

Screenshots or Screencasts (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #332590 (closed)

Edited by Etienne Baqué

Merge request reports