Merge branch '337432-remove-with_findings_and_scanner-scope' into 'master'

Remove unused with_findings_and_scanner scope

See merge request gitlab-org/gitlab!73930
This commit is contained in:
Nikola Milojevic 2021-11-10 17:41:43 +00:00
commit fc702413ec

View file

@ -73,7 +73,6 @@ def with_vulnerability_links
scope :with_author_and_project, -> { includes(:author, :project) }
scope :with_findings, -> { includes(:findings) }
scope :with_findings_by_uuid_and_state, -> (uuid, state) { with_findings.where(findings: { uuid: uuid }, state: state) }
scope :with_findings_and_scanner, -> { includes(findings: :scanner) }
scope :with_findings_scanner_and_identifiers, -> { includes(findings: [:scanner, :identifiers, finding_identifiers: :identifier]) }
scope :with_created_issue_links_and_issues, -> { includes(created_issue_links: :issue) }