Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add missing option "visibility" to groups API #824

Open
wants to merge 1 commit into
base: 11.14
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add missing option "visibility" to groups API
Visibility is also available as filter for groups, not only for projects.
  • Loading branch information
discordier authored Jan 30, 2025
commit f8ce6872b7c77ed5686e36f9f6d383de8f62d1b7
4 changes: 4 additions & 0 deletions src/Api/Groups.php
Original file line number Diff line number Diff line change
@@ -866,6 +866,10 @@ private function getGroupSearchResolver()
->setNormalizer('top_level_only', $booleanNormalizer)
;

$resolver->setDefined('visibility')
->setAllowedValues('visibility', ['public', 'internal', 'private'])
;

return $resolver;
}