Add `maxAccessLevel` attribute to GraphQL group type
Background
In Add new fields to GroupType (#420702 - closed) we added some new attributes to the GraphQL group type but the access level attribute was missed. We need an attribute to display the max access level the current user has to a group. We use this to display the access level badge
Requirements
- Add attribute to
Types::GroupType
that returns the access level the current user has to the group. Proposal is to name this attributemaxAccessLevel
but feel free to propose other names.
Implementation guide
Use User#max_member_access_for_group_ids
to get the max access level.
Edited by Abdul Wadood