Remove security report latest pipeline fallback calculation
requested to merge 331950-remove-the-fallback-to-on-the-fly-calculation-of-latest-pipeline-with-security-reports into master
What does this MR do and why?
This fallback calculation was implemented until we could have the latest pipeline data populated in the database. Now that the background migrations have completed, this calculation is no longer needed and can be removed, per #331950 (closed).
Screenshots or screen recordings
There are no screenshots to show for this MR.
How to set up and validate locally
- Set the branch to
master
- Go to the Vulnerability Report of a project with vulnerabilities
- Note the last updated field exists.
- Open a rails console
- Get the project's vulnerability statistic
vs = Project.find(<project.id>).vulnerability_statistic
- Clear the latest_pipeline_id
vs.update_attribute(:latest_pipeline_id, nil)
- On the Vulnerability Report, the last updated field still exists.
- Set the branch to
331950-remove-the-fallback-to-on-the-fly-calculation-of-latest-pipeline-with-security-reports
- On the Vulnerability Report, the last updated field no longer exists, as the backup method has been removed.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #331950 (closed)
Edited by Jonathan Schafer