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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
remove eager loading
Klaus Zanderseb4a1d713870
diff --git a/modules/costs/lib/api/v3/time_entries/schemas/time_entry_schema_representer.rb b/modules/costs/lib/api/v3/time_entries/schemas/time_entry_schema_representer.rbindex c5906a0e9d3..ca02bd6a9c8 100644--- a/modules/costs/lib/api/v3/time_entries/schemas/time_entry_schema_representer.rb+++ b/modules/costs/lib/api/v3/time_entries/schemas/time_entry_schema_representer.rb@@ -77,7 +77,8 @@ module APIallowed_user_href}- schema_with_allowed_link :work_package,+ # TODO: also factory needed here?+ schema_with_allowed_link :entity,has_default: false,required: false,href_callback: ->(*) {diff --git a/modules/costs/lib/api/v3/time_entries/time_entry_representer.rb b/modules/costs/lib/api/v3/time_entries/time_entry_representer.rbindex 145f002bbcd..d95adbd1664 100644--- a/modules/costs/lib/api/v3/time_entries/time_entry_representer.rb+++ b/modules/costs/lib/api/v3/time_entries/time_entry_representer.rb@@ -173,10 +173,7 @@ module APIendend- self.to_eager_load = [:work_package,- :user,- :activity,- { project: :enabled_modules }]+ self.to_eager_load = [:user, :activity, { project: :enabled_modules }]endendend