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

extract into patch

ulfertsc546241459b6
diff --git a/lib/api/v3/work_packages/eager_loading/checksum.rb b/lib/api/v3/work_packages/eager_loading/checksum.rb
index 8016639275f..031d3a18a9e 100644
--- a/lib/api/v3/work_packages/eager_loading/checksum.rb
+++ b/lib/api/v3/work_packages/eager_loading/checksum.rb
@@ -70,7 +70,7 @@ module API
end
def checksum_associations
- %i[status author responsible assigned_to version priority category type bcf_issue]
+ %i[status author responsible assigned_to version priority category type]
end
def md5_checksum_table_name(association_name)
diff --git a/modules/bim/lib/open_project/bim/engine.rb b/modules/bim/lib/open_project/bim/engine.rb
index 93fd522a4a9..ee920090ddb 100644
--- a/modules/bim/lib/open_project/bim/engine.rb
+++ b/modules/bim/lib/open_project/bim/engine.rb
@@ -94,6 +94,7 @@ module OpenProject::Bim
patch_with_namespace :API, :V3, :Activities, :ActivityRepresenter
patch_with_namespace :Journal, :AggregatedJournal
patch_with_namespace :API, :V3, :Activities, :ActivitiesSharedHelpers
+ patch_with_namespace :API, :V3, :WorkPackages, :EagerLoading, :Checksum
patch_with_namespace :DemoData, :QueryBuilder
patch_with_namespace :DemoData, :ProjectSeeder
diff --git a/modules/bim/lib/open_project/bim/patches/api/v3/work_packages/eager_loading/checksum_patch.rb b/modules/bim/lib/open_project/bim/patches/api/v3/work_packages/eager_loading/checksum_patch.rb
new file mode 100644
index 00000000000..665d88f00a5
--- /dev/null
+++ b/modules/bim/lib/open_project/bim/patches/api/v3/work_packages/eager_loading/checksum_patch.rb
@@ -0,0 +1,43 @@
+#-- copyright
+# OpenProject is an open source project management software.
+# Copyright (C) 2012-2020 the OpenProject GmbH
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License version 3.
+#
+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+# Copyright (C) 2006-2017 Jean-Philippe Lang
+# Copyright (C) 2010-2013 the ChiliProject Team
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# See docs/COPYRIGHT.rdoc for more details.
+#++
+
+module OpenProject::Bim::Patches::API::V3::WorkPackages::EagerLoading::ChecksumPatch
+ def self.included(base)
+ class << base
+ prepend ClassMethods
+ end
+ end
+
+ module ClassMethods
+ protected
+
+ def checksum_associations
+ super + %i[bcf_issue]
+ end
+ end
+end