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
617d4f99
Commit
617d4f99
authored
Sep 28, 2020
by
Qingyu Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce cached SQL for JobsController#show
parent
2c22cf0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
app/serializers/pipeline_entity.rb
app/serializers/pipeline_entity.rb
+3
-1
changelogs/unreleased/231467-reduce-cached-query-jobscontroller-show.yml
...leased/231467-reduce-cached-query-jobscontroller-show.yml
+5
-0
No files found.
app/serializers/pipeline_entity.rb
View file @
617d4f99
...
...
@@ -82,7 +82,9 @@ class PipelineEntity < Grape::Entity
end
expose
:failed_builds
,
if:
->
(
*
)
{
can_retry?
},
using:
JobEntity
do
|
pipeline
|
pipeline
.
failed_builds
pipeline
.
failed_builds
.
each
do
|
build
|
build
.
project
=
pipeline
.
project
end
end
private
...
...
changelogs/unreleased/231467-reduce-cached-query-jobscontroller-show.yml
0 → 100644
View file @
617d4f99
---
title
:
Reduce cached SQL for JobsController#show
merge_request
:
43559
author
:
type
:
performance
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