Add new fields to GroupType
This issue is to resolve #409311 (comment 1496202978) to make the UI align with the designs in #406613 (closed)
We will need the following data that is not currently available in app/graphql/types/group_type.rb.
descendantGroupsCountprojectsCountgroupMembersCount-
accessLevel- Should returnTypes::AccessLevelType
Availability & Testing
- no E2E tests needed
- Adding tests to the unit/integration level covering the new elements will be sufficient
Implementation guide
In app/controllers/groups/children_controller.rb, it uses GroupDescendantsFinder.new to setup the children. We could use similar logic to get the above counts
-
with_selects_for_listto preload counts-
descendantGroupsCount=> issubgroup_count -
projectsCount=> isproject_count -
groupMembersCount=> ismember_count
-
See https://docs.gitlab.com/ee/development/graphql_guide/ for GraphQL help
Edited by Thong Kuah