Enable Organization Presence validation for GitlabSubscriptions::Trials::CreateService

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 controller is passing an organization_id already.

This MR addresses two left-over issues:

  • Remove the Namespace.with_disabled_organization_validation wrapper around Group Creation
  • Update the specs

Related to #411832 (closed)

Edited by Rutger Wessels

Merge request reports

Loading