Organization contains namespaces
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:
- Set the column value without having to perform a slow backfill operation.
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Closes #394796 (closed)
Edited by Alex Pooley