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

aaj no longer requires loading a lot of associated objects

ulfertscd85434ea645
diff --git a/app/services/work_packages/schedule_dependency.rb b/app/services/work_packages/schedule_dependency.rb
index fc8819a44a3..410993f899e 100644
--- a/app/services/work_packages/schedule_dependency.rb
+++ b/app/services/work_packages/schedule_dependency.rb
@@ -87,15 +87,9 @@ class WorkPackages::ScheduleDependency
end
def load_following(work_packages)
- # include associations required for journal creation later on
WorkPackage
.hierarchy_tree_following(work_packages)
- .includes(:custom_values,
- :attachments,
- :type,
- :project,
- :journals,
- parent_relation: :from,
+ .includes(parent_relation: :from,
follows_relations: :to)
end