summaryrefslogtreecommitdiff
path: root/app/serializers/pipeline_serializer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/pipeline_serializer.rb')
-rw-r--r--app/serializers/pipeline_serializer.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/serializers/pipeline_serializer.rb b/app/serializers/pipeline_serializer.rb
index 7829df9fada..efeccebec41 100644
--- a/app/serializers/pipeline_serializer.rb
+++ b/app/serializers/pipeline_serializer.rb
@@ -13,7 +13,15 @@ class PipelineSerializer < BaseSerializer
def represent(resource, opts = {})
if resource.is_a?(ActiveRecord::Relation)
- resource = resource.includes(project: :namespace)
+ resource = resource.includes(:project)
+ resource = resource.includes(:pending_builds,
+ :retryable_builds,
+ :cancelable_statuses,
+ :manual_actions,
+ :artifacts)
+ resource = resource.includes(pending_builds: :project)
+ resource = resource.includes(manual_actions: :project)
+ resource = resource.includes(artifacts: :project)
end
if paginated?