Commit 6dbe3e63 authored by Tiger Watson's avatar Tiger Watson

Merge branch 'remove_cop_disable_comment_and_preload' into 'master'

Remove cop disable comment and preload of associations

See merge request gitlab-org/gitlab!40934
parents a8971bd2 de5678e9
...@@ -113,9 +113,9 @@ module Security ...@@ -113,9 +113,9 @@ module Security
def dismissal_feedback_by_fingerprint def dismissal_feedback_by_fingerprint
strong_memoize(:dismissal_feedback_by_fingerprint) do strong_memoize(:dismissal_feedback_by_fingerprint) do
pipeline.project.vulnerability_feedback pipeline.project
.with_associations .vulnerability_feedback
.where(feedback_type: 'dismissal') # rubocop:disable CodeReuse/ActiveRecord .for_dismissal
.group_by(&:project_fingerprint) .group_by(&:project_fingerprint)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment