Skip to content

Validate package_type for metadatum records

Steve Abrams requested to merge 199673-package-metadataum-associations into master

What does this MR do?

Adds validation to the Conan and Maven Metadatum models to ensure that a metadatum record is not created if the associated package is not of the same type (an NPM package should not have a ConanMetadatum record associated with it).

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team

Closes #199673 (closed)

Edited by Steve Abrams

Merge request reports