Commit 96278cf9 authored by Michał Zając's avatar Michał Zając

Rename OCCURRENCES_PER_PAGE to FINDINGS_PER_PAGE

parent ca7f2dc3
...@@ -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"
OCCURRENCES_PER_PAGE = 20 FINDINGS_PER_PAGE = 20
paginates_per OCCURRENCES_PER_PAGE paginates_per FINDINGS_PER_PAGE
sha_attribute :project_fingerprint sha_attribute :project_fingerprint
sha_attribute :location_fingerprint sha_attribute :location_fingerprint
......
...@@ -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::OCCURRENCES_PER_PAGE Vulnerabilities::Finding.paginates_per Vulnerabilities::Finding::FINDINGS_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
......
...@@ -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::OCCURRENCES_PER_PAGE Vulnerabilities::Finding.paginates_per Vulnerabilities::Finding::FINDINGS_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
......
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