Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-11-25 21:14:13 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-11-25 21:14:13 +0300
commit1c635e68ea6fb392244f0d9f8c9dd2c7bd1c95e6 (patch)
tree052cfeba83f0db195c3861cd3a0173df30bb8a01 /lib
parentd03aeb1110374d140a42622716597ccfa8e4ba57 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r--lib/api/helpers/members_helpers.rb3
-rw-r--r--lib/api/members.rb1
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/helpers/members_helpers.rb b/lib/api/helpers/members_helpers.rb
index 1e89f9f97a2..c2710be6c03 100644
--- a/lib/api/helpers/members_helpers.rb
+++ b/lib/api/helpers/members_helpers.rb
@@ -8,6 +8,9 @@ module API
params :optional_filter_params_ee do
end
+ params :optional_state_filter_ee do
+ end
+
def find_source(source_type, id)
public_send("find_#{source_type}!", id) # rubocop:disable GitlabSecurity/PublicSend
end
diff --git a/lib/api/members.rb b/lib/api/members.rb
index f488c8c26fc..13c8e60aa6d 100644
--- a/lib/api/members.rb
+++ b/lib/api/members.rb
@@ -41,6 +41,7 @@ module API
optional :query, type: String, desc: 'A query string to search for members'
optional :user_ids, type: Array[Integer], coerce_with: ::API::Validations::Types::CommaSeparatedToIntegerArray.coerce, desc: 'Array of user ids to look up for membership'
optional :show_seat_info, type: Boolean, desc: 'Show seat information for members'
+ use :optional_state_filter_ee
use :pagination
end