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
96278cf9
Commit
96278cf9
authored
Jul 22, 2020
by
Michał Zając
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename OCCURRENCES_PER_PAGE to FINDINGS_PER_PAGE
parent
ca7f2dc3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
ee/app/models/vulnerabilities/finding.rb
ee/app/models/vulnerabilities/finding.rb
+4
-2
ee/spec/requests/security/vulnerability_findings_spec.rb
ee/spec/requests/security/vulnerability_findings_spec.rb
+1
-1
ee/spec/support/shared_examples/controllers/concerns/project_vulnerability_findings_actions_shared_examples.rb
...project_vulnerability_findings_actions_shared_examples.rb
+1
-1
No files found.
ee/app/models/vulnerabilities/finding.rb
View file @
96278cf9
...
@@ -6,11 +6,13 @@ module Vulnerabilities
...
@@ -6,11 +6,13 @@ module Vulnerabilities
include
::
Gitlab
::
Utils
::
StrongMemoize
include
::
Gitlab
::
Utils
::
StrongMemoize
include
Presentable
include
Presentable
# https://gitlab.com/groups/gitlab-org/-/epics/3148
# https://gitlab.com/gitlab-org/gitlab/-/issues/214563#note_370782508 is why the table names are not renamed
self
.
table_name
=
"vulnerability_occurrences"
self
.
table_name
=
"vulnerability_occurrences"
OCCURRENCE
S_PER_PAGE
=
20
FINDING
S_PER_PAGE
=
20
paginates_per
OCCURRENCE
S_PER_PAGE
paginates_per
FINDING
S_PER_PAGE
sha_attribute
:project_fingerprint
sha_attribute
:project_fingerprint
sha_attribute
:location_fingerprint
sha_attribute
:location_fingerprint
...
...
ee/spec/requests/security/vulnerability_findings_spec.rb
View file @
96278cf9
...
@@ -55,7 +55,7 @@ RSpec.describe 'GET /-/security/vulnerability_findings' do
...
@@ -55,7 +55,7 @@ RSpec.describe 'GET /-/security/vulnerability_findings' do
end
end
after
do
after
do
Vulnerabilities
::
Finding
.
paginates_per
Vulnerabilities
::
Finding
::
OCCURRENCE
S_PER_PAGE
Vulnerabilities
::
Finding
.
paginates_per
Vulnerabilities
::
Finding
::
FINDING
S_PER_PAGE
end
end
it
'returns the list of vulnerability findings that are on the requested page'
do
it
'returns the list of vulnerability findings that are on the requested page'
do
...
...
ee/spec/support/shared_examples/controllers/concerns/project_vulnerability_findings_actions_shared_examples.rb
View file @
96278cf9
...
@@ -55,7 +55,7 @@ RSpec.shared_examples ProjectVulnerabilityFindingsActions do
...
@@ -55,7 +55,7 @@ RSpec.shared_examples ProjectVulnerabilityFindingsActions do
end
end
after
do
after
do
Vulnerabilities
::
Finding
.
paginates_per
Vulnerabilities
::
Finding
::
OCCURRENCE
S_PER_PAGE
Vulnerabilities
::
Finding
.
paginates_per
Vulnerabilities
::
Finding
::
FINDING
S_PER_PAGE
end
end
it
'returns the list of vulnerability findings that are on the requested page'
do
it
'returns the list of vulnerability findings that are on the requested page'
do
...
...
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