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
888bfec3
Commit
888bfec3
authored
Jan 14, 2022
by
Jonathan Schafer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignnore Finding Evidence summary column
Changelog: changed EE: true
parent
da120cce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ee/app/models/vulnerabilities/finding/evidence.rb
ee/app/models/vulnerabilities/finding/evidence.rb
+3
-1
ee/spec/models/vulnerabilities/finding/evidence_spec.rb
ee/spec/models/vulnerabilities/finding/evidence_spec.rb
+0
-1
No files found.
ee/app/models/vulnerabilities/finding/evidence.rb
View file @
888bfec3
...
...
@@ -3,15 +3,17 @@
module
Vulnerabilities
class
Finding
class
Evidence
<
ApplicationRecord
include
IgnorableColumns
self
.
table_name
=
'vulnerability_finding_evidences'
ignore_column
:summary
,
remove_with:
'14.9'
,
remove_after:
'2022-03-17'
belongs_to
:finding
,
class_name:
'Vulnerabilities::Finding'
,
inverse_of: :finding_evidence
,
foreign_key:
'vulnerability_occurrence_id'
,
optional:
false
validates
:summary
,
length:
{
maximum:
8_000_000
}
validates
:data
,
length:
{
maximum:
16_000_000
},
presence:
true
end
end
...
...
ee/spec/models/vulnerabilities/finding/evidence_spec.rb
View file @
888bfec3
...
...
@@ -3,7 +3,6 @@
require
'spec_helper'
RSpec
.
describe
Vulnerabilities
::
Finding
::
Evidence
do
it
{
is_expected
.
to
validate_length_of
(
:summary
).
is_at_most
(
8_000_000
)
}
it
{
is_expected
.
to
validate_presence_of
(
:data
)
}
it
{
is_expected
.
to
validate_length_of
(
:data
).
is_at_most
(
16_000_000
)
}
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