Cells: Iteration 2: Introduce `gitlab_main_cell` gitlab schema
Problem
Introduce gitlab_main_cell schema that inherits from gitlab_main. Make code to:
- make the
gitlab_main_clusterwideandgitlab_main_cellto inherit all fromgitlab_main - trigger violations (cross-join, cross-DB) only between
gitlab_main_clusterwideandgitlab_main_cell - do not trigger violations between
gitlab_main and gitlab_main_cellorgitlab_main and gitlab_main_clusterwide
Purpose
- at some point none of tables use
gitlab_main, onlygitlab_main_clusterwideorgitlab_main_cell - the
gitlab_main_cellwill usemaindatabase, and useApplicationRecordmodel - the
gitlab_main_clusterwidewill continue usingMainClusterwide::ApplicationRecord
Addition
- It would help to find a very simple table that could be put into
gitlab_main_cellthat does not have any other joins to allow us to testgitlab_main_cell. We would putnamespaceslater intogitlab_main_cell, but this is too much at this moment.
References
- Draft: Cells: Move `users` and `namespaces` in ... (!108462 - closed) such is implemented in here
Edited by Kamil Trzciński