Skip to content
代码片段 群组 项目
未验证 提交 2aea35ce 编辑于 作者: Tiger Watson's avatar Tiger Watson 提交者: GitLab
浏览文件

Merge branch 'minac_add_desired_sharding_keys' into 'master'

Add desired sharding keys for some TI owned tables

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/144990



Merged-by: default avatarTiger Watson <twatson@gitlab.com>
Approved-by: default avatarTiger Watson <twatson@gitlab.com>
Reviewed-by: default avatarManoj M J <mmj@gitlab.com>
Co-authored-by: default avatarMehmet Emin INAC <minac@gitlab.com>
No related branches found
No related tags found
无相关合并请求
table_name: sbom_occurrences_vulnerabilities table_name: sbom_occurrences_vulnerabilities
classes:
- Sbom::OccurrencesVulnerability
feature_categories: feature_categories:
- dependency_management - dependency_management
milestone: '16.7' milestone: '16.7'
gitlab_schema: gitlab_main_cell gitlab_schema: gitlab_main_cell
desired_sharding_key:
project_id:
references: projects
backfill_via:
parent:
foreign_key: sbom_occurrence_id
table: sbom_occurrences
sharding_key: project_id
belongs_to: occurrence
...@@ -7,4 +7,13 @@ feature_categories: ...@@ -7,4 +7,13 @@ feature_categories:
description: Join table between Remediations and Findings description: Join table between Remediations and Findings
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/47166 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/47166
milestone: '13.7' milestone: '13.7'
gitlab_schema: gitlab_main gitlab_schema: gitlab_main_cell
desired_sharding_key:
project_id:
references: projects
backfill_via:
parent:
foreign_key: vulnerability_occurrence_id
table: vulnerability_occurrences
sharding_key: project_id
belongs_to: finding
...@@ -13,7 +13,10 @@ ...@@ -13,7 +13,10 @@
end end
let(:allowed_to_be_missing_not_null) do let(:allowed_to_be_missing_not_null) do
[] [
# column is missing NOT NULL constraint, but `belongs_to` association has `optional: false`, so we are good.
'vulnerability_findings_remediations.vulnerability_occurrence_id'
]
end end
it 'must reference an allowed referenced table' do it 'must reference an allowed referenced table' do
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册