Use project_id as sharding key for packages_dependencies table
What does this MR do and why?
Use project_id as sharding key for packages_dependencies table
- Finalize the background migration to backfill
project_idin the packages_dependencies table. - Add
project_idvalidation present to thePackages::Dependencymodel. - Remove temporary code to search and update existing
packages dependencies without
project_id. - Add
NOT NULLconstraint to theproject_idcolumn in thepackages_dependenciestable. - Use
project_idas a sharding key for thepackages_dependenciestable.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
No.
How to set up and validate locally
I don't think we have something to validate here beside running the migrations.
Related to #465276 (closed)
Edited by Dzmitry (Dima) Meshcharakou