Skip to content

Organization contains namespaces

Alex Pooley requested to merge 394796-organization-model-contains-groups into master

What does this MR do and why?

Extend the Organization model to contain namespaces and groups. The relationship will default associate to the default organization. The default serves two purposes:

  1. Set the column value without having to perform a slow backfill operation.
  2. Delay having to write code to explicitly reference namespace organizations.

We constrain the relationship between the organizations and namespaces table using a loose foreign key.

I've created a follow up issue to index namespaces.organization_id synchronously.

More information around cells and Organization can be found at https://docs.gitlab.com/ee/architecture/blueprints/cells/cells-feature-organizations.html

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Closes #394796 (closed)

Edited by Alex Pooley

Merge request reports