Commit 1d24ec4b authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch '8587-20-vulnerabilities' into 'master'

Change paginate number to 20

Closes #8587

See merge request gitlab-org/gitlab-ee!9213
parents ddd2b7d5 04f805ba
...@@ -7,7 +7,7 @@ module Vulnerabilities ...@@ -7,7 +7,7 @@ module Vulnerabilities
self.table_name = "vulnerability_occurrences" self.table_name = "vulnerability_occurrences"
paginates_per 10 paginates_per 20
# Used for both severity and confidence # Used for both severity and confidence
LEVELS = { LEVELS = {
......
---
title: Change paginate number to 20
merge_request: 9213
author:
type: changed
...@@ -79,7 +79,7 @@ describe Groups::Security::VulnerabilitiesController do ...@@ -79,7 +79,7 @@ describe Groups::Security::VulnerabilitiesController do
end end
it "returns a list of vulnerabilities" do it "returns a list of vulnerabilities" do
get :index, params: { group_id: group, page: 3 }, format: :json get :index, params: { group_id: group, page: 2 }, format: :json
expect(response).to have_gitlab_http_status(200) expect(response).to have_gitlab_http_status(200)
expect(json_response).to be_an(Array) expect(json_response).to be_an(Array)
......
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