Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
73b17f4f
Commit
73b17f4f
authored
Mar 08, 2022
by
Jonathan Schafer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove feature flag to read finding evidence model
Changelog: changed EE: true
parent
7204aec7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
28 deletions
+3
-28
config/feature_flags/development/read_from_vulnerability_finding_evidence.yml
.../development/read_from_vulnerability_finding_evidence.yml
+0
-8
ee/app/models/vulnerabilities/finding.rb
ee/app/models/vulnerabilities/finding.rb
+1
-1
ee/spec/models/vulnerabilities/finding_spec.rb
ee/spec/models/vulnerabilities/finding_spec.rb
+2
-19
No files found.
config/feature_flags/development/read_from_vulnerability_finding_evidence.yml
deleted
100644 → 0
View file @
7204aec7
---
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
ee/app/models/vulnerabilities/finding.rb
View file @
73b17f4f
...
...
@@ -291,7 +291,7 @@ module Vulnerabilities
end
def
evidence
evidence_data
=
finding_evidence
.
present?
&&
Feature
.
enabled?
(
:read_from_vulnerability_finding_evidence
)
?
finding_evidence
.
data
:
metadata
.
dig
(
'evidence'
)
evidence_data
=
finding_evidence
.
present?
?
finding_evidence
.
data
:
metadata
.
dig
(
'evidence'
)
return
if
evidence_data
.
nil?
...
...
ee/spec/models/vulnerabilities/finding_spec.rb
View file @
73b17f4f
...
...
@@ -876,31 +876,14 @@ RSpec.describe Vulnerabilities::Finding do
context
'with finding_evidence'
do
let
(
:finding_evidence
)
{
build
(
:vulnerabilties_finding_evidence
)
}
let
(
:finding
)
{
finding_evidence
.
finding
}
let
(
:evidence
)
{
finding_evidence
.
data
}
before
do
finding_evidence
.
data
[
:summary
]
=
"finding_evidence Summary"
finding_evidence
.
save!
end
context
'when the read_from_vulnerability_finding_evidence feature flag is off'
do
let
(
:evidence
)
{
finding
.
metadata
[
'evidence'
]
}
before
do
stub_feature_flags
(
read_from_vulnerability_finding_evidence:
false
)
end
include_examples
'evidence schema'
end
context
'when the read_from_vulnerability_finding_evidence feature flag is on'
do
let
(
:evidence
)
{
finding_evidence
.
data
}
before
do
stub_feature_flags
(
read_from_vulnerability_finding_evidence:
true
)
end
include_examples
'evidence schema'
end
include_examples
'evidence schema'
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment