Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

reenable eager loading in endpoints

ulferts3162c837d49c
diff --git a/lib/api/v3/utilities/endpoints/index.rb b/lib/api/v3/utilities/endpoints/index.rb
index 9fc81f6c965..4ac995119a8 100644
--- a/lib/api/v3/utilities/endpoints/index.rb
+++ b/lib/api/v3/utilities/endpoints/index.rb
@@ -162,7 +162,9 @@ module API
if constraint.is_a?(Class)
result_scope
else
- result_scope.where id: constraint.select(:id)
+ result_scope
+ .includes(constraint.includes_values)
+ .where id: constraint.select(:id)
end
end
end