Resolve "Remove default value for `organization_id` from SBOM tables"

What does this MR do and why?

The organization_id column is now set by the backend when ingesting SBOMs and when exporting vulnerabilities and dependency lists. It should no longer have a default value.

  • Remove default value for organization_id column (sharding key) from the following tables:
    • sbom_sources
    • sbom_source_packages
    • sbom_components
    • sbom_component_versions
    • vulnerability_exports
    • vulnerability_export_parts
    • dependency_list_exports – no default value
    • dependency_list_export_parts
  • Update MigrateOsSbomOccurrencesToComponentsWithoutPrefix to set organization_id during the migration. Update specs. NOTE: This BBM should be finalized and removed. See #495497 and !166999 (comment 2129216646).
  • Update specs of UpdateSbomOccurrencesComponentNameBasedOnPep503. NOTE: This BBM should be finalized and removed. See #495487 and !166999 (comment 2127337661).

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Related to #480423 (closed)

Edited by Fabien Catteau

Merge request reports

Loading