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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
819746dc
Commit
819746dc
authored
May 04, 2019
by
Grzegorz Bizon
Committed by
Filipa Lacerda
May 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not serialize pipeline on each build serialization request
parent
79fc5e13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
app/assets/javascripts/jobs/store/actions.js
app/assets/javascripts/jobs/store/actions.js
+1
-1
app/serializers/build_details_entity.rb
app/serializers/build_details_entity.rb
+5
-1
No files found.
app/assets/javascripts/jobs/store/actions.js
View file @
819746dc
...
...
@@ -186,7 +186,7 @@ export const fetchStages = ({ state, dispatch }) => {
dispatch
(
'
requestStages
'
);
axios
.
get
(
`
${
state
.
job
.
pipeline
.
path
}
.json`
)
.
get
(
`
${
state
.
job
.
pipeline
_
path
}
.json`
)
.
then
(({
data
})
=>
{
// Set selected stage
dispatch
(
'
receiveStagesSuccess
'
,
data
.
details
.
stages
);
...
...
app/serializers/build_details_entity.rb
View file @
819746dc
...
...
@@ -8,7 +8,11 @@ class BuildDetailsEntity < JobEntity
expose
:stuck?
,
as: :stuck
expose
:user
,
using:
UserEntity
expose
:runner
,
using:
RunnerEntity
expose
:pipeline
,
using:
PipelineEntity
# expose :pipeline, using: PipelineEntity
expose
:pipeline_path
do
|
build
|
project_pipeline_path
(
build
.
project
,
build
.
pipeline
)
end
expose
:deployment_status
,
if:
->
(
*
)
{
build
.
starts_environment?
}
do
expose
:deployment_status
,
as: :status
...
...
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