Commit 819746dc authored by Grzegorz Bizon's avatar Grzegorz Bizon Committed by Filipa Lacerda

Do not serialize pipeline on each build serialization request

parent 79fc5e13
......@@ -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);
......
......@@ -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
......
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