Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dd83ae80
Commit
dd83ae80
authored
Apr 23, 2021
by
Jonathan Schafer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add descriptions for Group Member Relations
parent
0c629940
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
app/finders/group_members_finder.rb
app/finders/group_members_finder.rb
+6
-0
app/graphql/types/group_member_relation_enum.rb
app/graphql/types/group_member_relation_enum.rb
+1
-1
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+3
-3
No files found.
app/finders/group_members_finder.rb
View file @
dd83ae80
...
...
@@ -4,6 +4,12 @@ class GroupMembersFinder < UnionFinder
RELATIONS
=
%i(direct inherited descendants)
.
freeze
DEFAULT_RELATIONS
=
%i(direct inherited)
.
freeze
RELATIONS_DESCRIPTIONS
=
{
direct:
'Members in the group itself'
,
inherited:
"Members in the group's ancestor groups"
,
descendants:
"Members in the group's subgroups"
}.
freeze
include
CreatedAtFilter
# Params can be any of the following:
...
...
app/graphql/types/group_member_relation_enum.rb
View file @
dd83ae80
...
...
@@ -6,7 +6,7 @@ module Types
description
'Group member relation'
::
GroupMembersFinder
::
RELATIONS
.
each
do
|
member_relation
|
value
member_relation
.
to_s
.
upcase
,
value:
member_relation
,
description:
"
#{
member_relation
.
to_s
.
titleize
}
members"
value
member_relation
.
to_s
.
upcase
,
value:
member_relation
,
description:
::
GroupMembersFinder
::
RELATIONS_DESCRIPTIONS
[
member_relation
]
end
end
end
doc/api/graphql/reference/index.md
View file @
dd83ae80
...
...
@@ -13248,9 +13248,9 @@ Group member relation.
| Value | Description |
| ----- | ----------- |
|
<a
id=
"groupmemberrelationdescendants"
></a>
`DESCENDANTS`
|
Descendants member
s. |
|
<a
id=
"groupmemberrelationdirect"
></a>
`DIRECT`
|
Direct members
. |
|
<a
id=
"groupmemberrelationinherited"
></a>
`INHERITED`
|
Inherited member
s. |
|
<a
id=
"groupmemberrelationdescendants"
></a>
`DESCENDANTS`
|
Members in the group's subgroup
s. |
|
<a
id=
"groupmemberrelationdirect"
></a>
`DIRECT`
|
Members in the group itself
. |
|
<a
id=
"groupmemberrelationinherited"
></a>
`INHERITED`
|
Members in the group's ancestor group
s. |
### `HealthStatus`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment