Optimise Security::Finding cleanup by clearing build_id scope
Unscoping the where: :build_id scope from the cleanup_service scan_batch relation resolves a strange issue where this query was being carried through to the Security::Finding queries. `unscope` is not permitted for use outside of models, so this action was moved to a scope on the Security::Scan model. Changelog: performance MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/84283 EE: true
Showing
Please register or sign in to comment