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:
commit
140935fbfd
3 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
6
changelogs/unreleased/disable-pages-on-jobs.yml
Normal file
6
changelogs/unreleased/disable-pages-on-jobs.yml
Normal 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
|
Loading…
Reference in a new issue