summaryrefslogtreecommitdiff
path: root/app/serializers/ci/dag_job_entity.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/ci/dag_job_entity.rb')
-rw-r--r--app/serializers/ci/dag_job_entity.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/serializers/ci/dag_job_entity.rb b/app/serializers/ci/dag_job_entity.rb
index b4947319ed1..ed4d4505152 100644
--- a/app/serializers/ci/dag_job_entity.rb
+++ b/app/serializers/ci/dag_job_entity.rb
@@ -3,6 +3,7 @@
module Ci
class DagJobEntity < Grape::Entity
expose :name
+ expose :scheduling_type
expose :needs, if: -> (job, _) { job.scheduling_type_dag? } do |job|
job.needs.pluck(:name) # rubocop: disable CodeReuse/ActiveRecord