Skip to content

Disable finding link creation

What does this MR do?

This MR disables finding link creation by putting it behind a feature flag. This is necessary so that we can fix the data creation issue and clear the existing data without adding more invalid data to the table. This is part of the implementation plan to fix the bug reported in #330882 (closed).

Screenshots or Screencasts (strongly suggested)

N/A

How to setup and validate locally (strongly suggested)

  1. Disable the vulnerability_finding_replace_metadata flag

    Feature.enable(:vulnerability_finding_replace_metadata)
  2. Check the number of Vulnerabilities::FindingLink's in the database

    Vulnerabilities::FindingLink.count
  3. On the master branch, run a pipeline with a dependency scan (suggested repo: https://gitlab.com/gitlab-examples/security/security-reports)

  4. Check the number of Vulnerabilities::FindingLink's in the database. It should be the same as before

    Vulnerabilities::FindingLink.count

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #330882 (closed)

Edited by Jonathan Schafer

Merge request reports