Skip to content

Use default organization for namespaces of some special Users

What does this MR do and why?

As part of cell projects, we are working on introducing Organizations. All Namespaces will have an organization. This means we need to assign an Organization when we create a namespace.

This MR is part the effort of adding Organization to User Namespaces (also known as Personal Namespaces). User namespaces are created using the User.assign_personal_namespace method.

In a previous MR, we added a new optional Organization parameter to that method. And as a follow up, we need to update all code paths that are creating users to specify what Organization should be assigned.

This MR will define the organization of the namespace for two code paths:

  • Internal Users. These are 'bots'. We will use default organization for the time being. See this issue for the follow up
  • Users created on development as part of database seeding. These will use default organization because we do not have another organization

I am using the Default Organization for these because we do not have other Organizations on Development and Production.

Related to #443494 (closed)

Edited by Rutger Wessels

Merge request reports