Commit 7a4cb945 authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab master

parents 37f8036a 80ed9b2d
---
name: security_finding_build_disable_joins
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/72738
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/342380
milestone: '14.4'
type: development
group: group::threat insights
default_enabled: true
......@@ -18,7 +18,7 @@ module Security
belongs_to :scan, inverse_of: :findings, optional: false
belongs_to :scanner, class_name: 'Vulnerabilities::Scanner', inverse_of: :security_findings, optional: false
has_one :build, through: :scan, disable_joins: -> { ::Feature.enabled?(:security_finding_build_disable_joins, default_enabled: :yaml) }
has_one :build, through: :scan, disable_joins: true
enum confidence: ::Enums::Vulnerability.confidence_levels, _prefix: :confidence
enum severity: ::Enums::Vulnerability.severity_levels, _prefix: :severity
......
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