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

Clarify

Klaus Zandersae61a4491c3f
diff --git a/lib/api/v3/memberships/memberships_api.rb b/lib/api/v3/memberships/memberships_api.rb
index 1bb9fdeeef6..497b6c57144 100644
--- a/lib/api/v3/memberships/memberships_api.rb
+++ b/lib/api/v3/memberships/memberships_api.rb
@@ -35,8 +35,7 @@ module API
resources :memberships do
get &::API::V3::Utilities::Endpoints::Index
.new(model: Member,
- # TODO: For now we exclude entity specific memberships in the API until we have updated the
- # frontend and representers to show those properly
+ # excluding entity memberships. Those can be requested via the Shares API
scope: -> { Member.where(entity: nil).includes(MembershipRepresenter.to_eager_load) },
api_name: 'Membership')
.mount
diff --git a/lib/api/v3/shares/shares_api.rb b/lib/api/v3/shares/shares_api.rb
index f46784e286f..3481408d719 100644
--- a/lib/api/v3/shares/shares_api.rb
+++ b/lib/api/v3/shares/shares_api.rb
@@ -38,7 +38,7 @@ module API
get &::API::V3::Utilities::Endpoints::Index
.new(model: Member,
scope: -> { Member.where.not(entity: nil).includes(ShareRepresenter.to_eager_load) },
- api_name: 'Membership')
+ api_name: 'Share')
.mount
end
end