diff --git a/db/docs/ci_job_token_project_scope_links.yml b/db/docs/ci_job_token_project_scope_links.yml index de6d69d1c64855bab05b2be12118c11a2a2f4eeb..eb60d1b13aff2b1bfcc51fefb33e2dfa229bcbc6 100644 --- a/db/docs/ci_job_token_project_scope_links.yml +++ b/db/docs/ci_job_token_project_scope_links.yml @@ -4,10 +4,12 @@ classes: - Ci::JobToken::ProjectScopeLink feature_categories: - continuous_integration -description: | - Links a source project and target project, allowing a project's job token to give access to another project. - Using the outbound direction, the source project's job token can access target projects. - Using the inbound direction, the source project can be accessed by the target project's job token. +description: Links a source project and target project, allowing a project's job token + to give access to another project. Using the outbound direction, the source project's + job token can access target projects. Using the inbound direction, the source project + can be accessed by the target project's job token. introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/62733 milestone: '14.0' gitlab_schema: gitlab_ci +sharding_key: + source_project_id: projects diff --git a/db/docs/ci_namespace_monthly_usages.yml b/db/docs/ci_namespace_monthly_usages.yml index 276cc52c7f35430ede37d7e3706e521e877ba9bc..a7e0c1fb1db194e1cefb92619571d3a6be816a8c 100644 --- a/db/docs/ci_namespace_monthly_usages.yml +++ b/db/docs/ci_namespace_monthly_usages.yml @@ -8,3 +8,5 @@ description: TODO introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/52915 milestone: '13.9' gitlab_schema: gitlab_ci +sharding_key: + namespace_id: namespaces diff --git a/db/docs/ci_pending_builds.yml b/db/docs/ci_pending_builds.yml index 5622df4feab66d4dcc0a058b223920dc7e0c2e7a..06e28d3bb74e5ed9a46af4da5180bb60a643c430 100644 --- a/db/docs/ci_pending_builds.yml +++ b/db/docs/ci_pending_builds.yml @@ -8,3 +8,5 @@ description: Pending builds metadata introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/61581 milestone: '14.0' gitlab_schema: gitlab_ci +sharding_key: + project_id: projects diff --git a/db/docs/ci_pipeline_metadata.yml b/db/docs/ci_pipeline_metadata.yml index 8a25591626193a6699d11d3a93d125952f237371..a4257ab2f8f96e8cbd8a5b5e24326397afb9a75d 100644 --- a/db/docs/ci_pipeline_metadata.yml +++ b/db/docs/ci_pipeline_metadata.yml @@ -8,3 +8,5 @@ description: Stores additional information about CI pipelines introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/97139 milestone: '15.5' gitlab_schema: gitlab_ci +sharding_key: + project_id: projects diff --git a/db/docs/ci_project_monthly_usages.yml b/db/docs/ci_project_monthly_usages.yml index 03d84aa669ff7dfc741a4721e16993cd614bc3a8..8c60852a00e545e2218c8cf7bc414a476810e020 100644 --- a/db/docs/ci_project_monthly_usages.yml +++ b/db/docs/ci_project_monthly_usages.yml @@ -8,3 +8,5 @@ description: TODO introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53460 milestone: '13.9' gitlab_schema: gitlab_ci +sharding_key: + project_id: projects diff --git a/db/docs/ci_refs.yml b/db/docs/ci_refs.yml index 1e4da2212414877f0c8d3d291dfdcd631e7853f3..edc125e4196fa6cd92b77452b202fa12339e43f7 100644 --- a/db/docs/ci_refs.yml +++ b/db/docs/ci_refs.yml @@ -8,3 +8,5 @@ description: TODO introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/16951 milestone: '12.9' gitlab_schema: gitlab_ci +sharding_key: + project_id: projects diff --git a/db/docs/ci_running_builds.yml b/db/docs/ci_running_builds.yml index 72e941a8665f4432e91a1093fb638f6a52ba3a20..950246c1d668614bb79554b976b75547b9edd424 100644 --- a/db/docs/ci_running_builds.yml +++ b/db/docs/ci_running_builds.yml @@ -4,13 +4,14 @@ classes: - Ci::RunningBuild feature_categories: - continuous_integration -description: > - Running builds metadata. - Despite the generic `RunningBuild` name, in this first iteration it applies only to shared runners. - The decision to insert all of the running builds here was deferred to avoid the pressure on the database as - at this time that was not necessary. - We can reconsider the decision to limit this only to shared runners when there is more evidence that inserting all - of the running builds there is worth the additional pressure. +description: Running builds metadata. Despite the generic `RunningBuild` name, in + this first iteration it applies only to shared runners. The decision to insert all + of the running builds here was deferred to avoid the pressure on the database as + at this time that was not necessary. We can reconsider the decision to limit this + only to shared runners when there is more evidence that inserting all of the running + builds there is worth the additional pressure. introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/62912 milestone: '14.0' gitlab_schema: gitlab_ci +sharding_key: + project_id: projects diff --git a/db/docs/ci_sources_projects.yml b/db/docs/ci_sources_projects.yml index 10aba3025d87128a0d579fd5ea7643e3e0413e8a..717d1bab28541c0674fc8ccf34f4bbdcbc1c2000 100644 --- a/db/docs/ci_sources_projects.yml +++ b/db/docs/ci_sources_projects.yml @@ -8,3 +8,5 @@ description: TODO introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/20063 milestone: '12.9' gitlab_schema: gitlab_ci +sharding_key: + source_project_id: projects diff --git a/db/docs/ci_subscriptions_projects.yml b/db/docs/ci_subscriptions_projects.yml index e383432eac658c46cd36c1958841b73d7e1360a9..8f78cf2ad0ca09d13d77aaaee568e8cd2c3f0425 100644 --- a/db/docs/ci_subscriptions_projects.yml +++ b/db/docs/ci_subscriptions_projects.yml @@ -8,3 +8,5 @@ description: TODO introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/18678 milestone: '12.5' gitlab_schema: gitlab_ci +sharding_key: + downstream_project_id: projects diff --git a/db/docs/external_pull_requests.yml b/db/docs/external_pull_requests.yml index d0e6bf15eb5be51f1bfb1b286cbfaeef9fcd6e1f..94fb5b318ae568ca3db8d40bbe46efa74556bdac 100644 --- a/db/docs/external_pull_requests.yml +++ b/db/docs/external_pull_requests.yml @@ -8,3 +8,5 @@ description: TODO introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/ca6a1f33f91a8cceadebfb9c4e9ac6afa340f71d milestone: '12.3' gitlab_schema: gitlab_ci +sharding_key: + project_id: projects diff --git a/db/docs/merge_trains.yml b/db/docs/merge_trains.yml index 7d0310236e914da2a599cc82edefae3d99bfe1c2..29b54d54499ee764a572d70e359f0fb181a45071 100644 --- a/db/docs/merge_trains.yml +++ b/db/docs/merge_trains.yml @@ -4,7 +4,16 @@ classes: - MergeTrains::Car feature_categories: - continuous_integration -description: Each record represents a single merge request which is or was part of a merge train. +description: Each record represents a single merge request which is or was part of + a merge train. introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/827fc3ccb9335aa29fba0fc532b70015ec4c5186 milestone: '11.11' -gitlab_schema: gitlab_main +gitlab_schema: gitlab_main_cell +allow_cross_joins: +- gitlab_main_clusterwide +allow_cross_transactions: +- gitlab_main_clusterwide +allow_cross_foreign_keys: +- gitlab_main_clusterwide +sharding_key: + target_project_id: projects diff --git a/db/docs/namespace_ci_cd_settings.yml b/db/docs/namespace_ci_cd_settings.yml index 71668b132ebe22511f6db72bb9a0f08933fe4e20..cdc4f57b0eb25b7d973779c54186bc364bfef6e4 100644 --- a/db/docs/namespace_ci_cd_settings.yml +++ b/db/docs/namespace_ci_cd_settings.yml @@ -8,4 +8,12 @@ feature_categories: description: Namespace-scoped settings related to the CI/CD domain introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/86477 milestone: '15.0' -gitlab_schema: gitlab_main +gitlab_schema: gitlab_main_cell +allow_cross_joins: +- gitlab_main_clusterwide +allow_cross_transactions: +- gitlab_main_clusterwide +allow_cross_foreign_keys: +- gitlab_main_clusterwide +sharding_key: + namespace_id: namespaces diff --git a/db/docs/p_ci_builds_metadata.yml b/db/docs/p_ci_builds_metadata.yml index d984c68541dcb2664b3701e0c03e5c7f47a285d4..25a4aecf2a4dbb8206c4a9d2767ec4b455f79bdc 100644 --- a/db/docs/p_ci_builds_metadata.yml +++ b/db/docs/p_ci_builds_metadata.yml @@ -8,3 +8,5 @@ description: Routing table that holds information for job execution introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/100115 milestone: '15.5' gitlab_schema: gitlab_ci +sharding_key: + project_id: projects diff --git a/db/docs/project_ci_cd_settings.yml b/db/docs/project_ci_cd_settings.yml index a0643aff4b905773eb19868b21bd405005829ecb..e94039923c65bfd6fa02674a27148750285f1243 100644 --- a/db/docs/project_ci_cd_settings.yml +++ b/db/docs/project_ci_cd_settings.yml @@ -10,3 +10,5 @@ description: Project-scoped settings related to the CI/CD domain introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/392c411bdc16386ef42c86afaf8c4d8e4cddb955 milestone: '10.8' gitlab_schema: gitlab_main_cell +sharding_key: + project_id: projects