diff --git a/db/docs/design_user_mentions.yml b/db/docs/design_user_mentions.yml index b13baa1bc5f38612f12bd9483ff72b5c725052b4..b074f23e5adc403f5d633f28ebc453a510afe19c 100644 --- a/db/docs/design_user_mentions.yml +++ b/db/docs/design_user_mentions.yml @@ -7,4 +7,19 @@ feature_categories: description: User mentions in content related to designs introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19009 milestone: '12.6' -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 +desired_sharding_key: + project_id: + references: projects + backfill_via: + parent: + foreign_key: design_id + table: design_management_designs + sharding_key: project_id + belongs_to: design diff --git a/db/docs/issuable_severities.yml b/db/docs/issuable_severities.yml index 724561ce460fb6f74866f2e42b60ca9063082066..22f121a724692f143e108c0d13ecfa5b20f0178b 100644 --- a/db/docs/issuable_severities.yml +++ b/db/docs/issuable_severities.yml @@ -7,4 +7,19 @@ feature_categories: description: Integer representing severity applied to issues, currently used for incidents introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/40272 milestone: '13.4' -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 +desired_sharding_key: + namespace_id: + references: namespaces + backfill_via: + parent: + foreign_key: issue_id + table: issues + sharding_key: namespace_id + belongs_to: issue diff --git a/db/docs/issue_assignees.yml b/db/docs/issue_assignees.yml index dbfd277213c0ea87797ee63347a4aff426efe8cd..9ff42b8214f42caa8ce40cf044dd563613dc3ece 100644 --- a/db/docs/issue_assignees.yml +++ b/db/docs/issue_assignees.yml @@ -7,4 +7,19 @@ feature_categories: description: Users assigned to an issue introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/1541 milestone: '9.2' -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 +desired_sharding_key: + namespace_id: + references: namespaces + backfill_via: + parent: + foreign_key: issue_id + table: issues + sharding_key: namespace_id + belongs_to: issue diff --git a/db/docs/issue_links.yml b/db/docs/issue_links.yml index 810e5d940c8f7c31600051df5c466a8ea0e761a9..8eff26de20f34206bcddc49c94463b6a56a8dd8f 100644 --- a/db/docs/issue_links.yml +++ b/db/docs/issue_links.yml @@ -8,4 +8,19 @@ feature_categories: description: Links two issues by relationship type, which can be related or blocking introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/1719 milestone: '9.4' -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 +desired_sharding_key: + namespace_id: + references: namespaces + backfill_via: + parent: + foreign_key: source_id + table: issues + sharding_key: namespace_id + belongs_to: source diff --git a/db/docs/issue_user_mentions.yml b/db/docs/issue_user_mentions.yml index 4238441ea0be11a1e889c5cc58e9f69c5af772b4..8eed317f6c86cefa6507ea8ae687fbafeeeb3d55 100644 --- a/db/docs/issue_user_mentions.yml +++ b/db/docs/issue_user_mentions.yml @@ -7,4 +7,19 @@ feature_categories: description: User mentions in issue descriptions introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19009 milestone: '12.6' -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 +desired_sharding_key: + namespace_id: + references: namespaces + backfill_via: + parent: + foreign_key: issue_id + table: issues + sharding_key: namespace_id + belongs_to: issue diff --git a/db/docs/resource_link_events.yml b/db/docs/resource_link_events.yml index 7d367a76c2c94ccd9c730bf12693b78ca28521c4..733a6a63e135f44f00d122e0a2f795704ec83793 100644 --- a/db/docs/resource_link_events.yml +++ b/db/docs/resource_link_events.yml @@ -7,4 +7,19 @@ feature_categories: description: Records the change of parent link on work items along with timestamps introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/114394 milestone: '15.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 +desired_sharding_key: + namespace_id: + references: namespaces + backfill_via: + parent: + foreign_key: issue_id + table: issues + sharding_key: namespace_id + belongs_to: issue diff --git a/db/docs/resource_weight_events.yml b/db/docs/resource_weight_events.yml index 2abd3be48f82d7bc6fe079917ffc499a9567d952..48e67577ccf986d36361e902f3cf5f85a96bc010 100644 --- a/db/docs/resource_weight_events.yml +++ b/db/docs/resource_weight_events.yml @@ -7,4 +7,19 @@ feature_categories: description: Records the change of weight on issues along with timestamps introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/21515 milestone: '12.7' -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 +desired_sharding_key: + namespace_id: + references: namespaces + backfill_via: + parent: + foreign_key: issue_id + table: issues + sharding_key: namespace_id + belongs_to: issue diff --git a/db/docs/work_item_parent_links.yml b/db/docs/work_item_parent_links.yml index ca933345fc1bf022faa0f1ec51cca31859827135..185ffe712c9b7467d92ec7fd9978794e6a13ff4d 100644 --- a/db/docs/work_item_parent_links.yml +++ b/db/docs/work_item_parent_links.yml @@ -7,4 +7,19 @@ feature_categories: description: Persists link between work item and its parent. introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/87283 milestone: '15.1' -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 +desired_sharding_key: + namespace_id: + references: namespaces + backfill_via: + parent: + foreign_key: work_item_id + table: issues + sharding_key: namespace_id + belongs_to: work_item diff --git a/db/docs/work_item_progresses.yml b/db/docs/work_item_progresses.yml index 881e5d879e38d1f78120464a7df5d49d3753c0ee..487cb5d0fd25ee30c7ec013831a9be8160abe445 100644 --- a/db/docs/work_item_progresses.yml +++ b/db/docs/work_item_progresses.yml @@ -7,4 +7,19 @@ feature_categories: description: The progress of a Work Item. introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/104591/ milestone: '15.7' -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 +desired_sharding_key: + namespace_id: + references: namespaces + backfill_via: + parent: + foreign_key: issue_id + table: issues + sharding_key: namespace_id + belongs_to: work_item