Merge branch 'disable-pages-on-jobs' into 'master'

Use simple Next/Prev paging for CI Jobs page

Closes #41058

See merge request gitlab-org/gitlab-ce!16392
This commit is contained in:
Yorick Peterse 2018-01-12 14:03:04 +00:00
commit 140935fbfd
3 changed files with 8 additions and 2 deletions

View file

@ -29,7 +29,7 @@ class Projects::JobsController < Projects::ApplicationController
:project,
:tags
])
@builds = @builds.page(params[:page]).per(30)
@builds = @builds.page(params[:page]).per(30).without_count
end
def cancel_all

View file

@ -22,4 +22,4 @@
= render partial: "projects/ci/builds/build", collection: builds, as: :build, locals: { commit_sha: true, ref: true, pipeline_link: true, stage: true, allow_retry: true, admin: admin }
= paginate builds, theme: 'gitlab'
= paginate_collection(builds)

View file

@ -0,0 +1,6 @@
---
title: Use simple Next/Prev paging for jobs to avoid large count queries on arbitrarily
large sets of historical jobs
merge_request:
author:
type: performance