Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-18 20:42:23 +0300
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-30 17:55:09 +0300
commitf6a8894a5928e1cc37d8301c555fcfd5953cc180 (patch)
treedb9827840f7f8d0ac6d64cf0f66d3e18e3468549 /lib/api/pipeline_schedules.rb
parent92bc1ddaf5a256a5e6636bc4a6f8ebd8673ec719 (diff)
Expose last_pipeline only when detailed status
Diffstat (limited to 'lib/api/pipeline_schedules.rb')
-rw-r--r--lib/api/pipeline_schedules.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/api/pipeline_schedules.rb b/lib/api/pipeline_schedules.rb
index 454237d3fbb..c013d6f316b 100644
--- a/lib/api/pipeline_schedules.rb
+++ b/lib/api/pipeline_schedules.rb
@@ -31,7 +31,7 @@ module API
return not_found!('PipelineSchedule') unless pipeline_schedule
- present pipeline_schedule, with: Entities::PipelineSchedule
+ present pipeline_schedule, with: Entities::PipelineSchedule, type: :full
end
desc 'Creates a new pipeline schedule' do
@@ -52,7 +52,7 @@ module API
.execute
if pipeline_schedule.persisted?
- present pipeline_schedule, with: Entities::PipelineSchedule
+ present pipeline_schedule, with: Entities::PipelineSchedule, type: :full
else
render_validation_error!(pipeline_schedule)
end
@@ -75,7 +75,7 @@ module API
return not_found!('PipelineSchedule') unless pipeline_schedule
if pipeline_schedule.update(declared_params(include_missing: false))
- present pipeline_schedule, with: Entities::PipelineSchedule
+ present pipeline_schedule, with: Entities::PipelineSchedule, type: :full
else
render_validation_error!(pipeline_schedule)
end
@@ -93,7 +93,7 @@ module API
return not_found!('PipelineSchedule') unless pipeline_schedule
if pipeline_schedule.own!(current_user)
- present pipeline_schedule, with: Entities::PipelineSchedule
+ present pipeline_schedule, with: Entities::PipelineSchedule, type: :full
else
render_validation_error!(pipeline_schedule)
end
@@ -110,7 +110,7 @@ module API
return not_found!('PipelineSchedule') unless pipeline_schedule
- present pipeline_schedule.destroy, with: Entities::PipelineSchedule
+ present pipeline_schedule.destroy, with: Entities::PipelineSchedule, type: :full
end
end