[go: up one dir, main page]

Use Organization of Namespace for Organization for Placeholder User namespace

What does this MR do and why?

In !155732 (merged), we added validation for presence of an Organization on Namespaces. Since this MR was already quite big and impactful, most 'Create Namespace' code paths are wrapped in a Namespace.with_disabled_organization_validation method, which caused the validation to be skipped.

The Gitlab::Import::PlaceholderUserCreator class had this validation still disabled because the specs failed: the assigned organization did not exist

This MR has two changes:

  • Use the Organization of the Namespace for the user personal namespace.
  • Enable validation of presence of Organization on the user personal namespace

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.

Related to #411832 (closed)

Edited by Rutger Wessels

Merge request reports

Loading