Add import_vulnerabilities feature flag
What does this MR do and why?
Move import vulnerabilities feature has performance problems and raises duplicated errors, so we are moving the feature behind a feature flag
Note that this change does not disable vulnerability export, as we haven't seen problems when exporting vulnerabilities.
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
- MR that introduced the feature !171684 (merged)
- Discussion to disable the feature: #509904 (comment 2323775016)
- Backport request: https://gitlab.com/gitlab-org/release/tasks/-/issues/16833
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
Import a project that has vulnerabilities using Direct Transfer and Import/Export.
Migrate the project with the import_vulnerabilities feature flag enabled and disabled. When the feature flag is enabled, vulnerabilities will be imported; otherwise, they will not be imported.