Commit 7ae8d70c authored by Jonathan Schafer's avatar Jonathan Schafer

Create new feature flag

parent a6d2e203
---
name: read_from_vulnerability_finding_evidence
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/79883
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/352632
milestone: '14.8'
type: development
group: group::threat insights
default_enabled: false
......@@ -291,7 +291,7 @@ module Vulnerabilities
end
def evidence
evidence_data = finding_evidence.present? && Feature.enabled?(:vulnerability_finding_replace_metadata) ? finding_evidence.data : metadata.dig('evidence')
evidence_data = finding_evidence.present? && Feature.enabled?(:read_from_vulnerability_finding_evidence) ? finding_evidence.data : metadata.dig('evidence')
{
summary: evidence_data&.dig('summary'),
......
......@@ -909,7 +909,7 @@ RSpec.describe Vulnerabilities::Finding do
let(:evidence) { finding.metadata['evidence'] }
before do
stub_feature_flags(vulnerability_finding_replace_metadata: false)
stub_feature_flags(read_from_vulnerability_finding_evidence: false)
end
include_examples 'evidence schema'
......@@ -919,7 +919,7 @@ RSpec.describe Vulnerabilities::Finding do
let(:evidence) { finding_evidence.data }
before do
stub_feature_flags(vulnerability_finding_replace_metadata: true)
stub_feature_flags(read_from_vulnerability_finding_evidence: true)
end
include_examples 'evidence schema'
......
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