Commit 3677c80c authored by GitLab Bot's avatar GitLab Bot

Add latest changes from gitlab-org/gitlab@master

parent 319dea10
...@@ -5,6 +5,11 @@ ...@@ -5,6 +5,11 @@
module API module API
module Helpers module Helpers
module MembersHelpers module MembersHelpers
extend Grape::API::Helpers
params :optional_filter_params_ee do
end
def find_source(source_type, id) def find_source(source_type, id)
public_send("find_#{source_type}!", id) # rubocop:disable GitlabSecurity/PublicSend public_send("find_#{source_type}!", id) # rubocop:disable GitlabSecurity/PublicSend
end end
...@@ -42,3 +47,5 @@ module API ...@@ -42,3 +47,5 @@ module API
end end
end end
end end
API::Helpers::MembersHelpers.prepend_if_ee('EE::API::Helpers::MembersHelpers')
...@@ -19,6 +19,7 @@ module API ...@@ -19,6 +19,7 @@ module API
params do params do
optional :query, type: String, desc: 'A query string to search for members' optional :query, type: String, desc: 'A query string to search for members'
optional :user_ids, type: Array[Integer], desc: 'Array of user ids to look up for membership' optional :user_ids, type: Array[Integer], desc: 'Array of user ids to look up for membership'
use :optional_filter_params_ee
use :pagination use :pagination
end end
...@@ -157,5 +158,3 @@ module API ...@@ -157,5 +158,3 @@ module API
end end
end end
end end
API::Members.prepend_if_ee('EE::API::Members')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment