GraphQL error in invite members modal
Summary
From looking at our error budget spent, we had a lot of GraphQL errors, and it all seems to be the same error and related to the invite members modal.
The problem is when invite members modal component renders, the request called getInstanceMemberRoles
fails. Error is raised here
Steps to reproduce
- Simulate SaaS
- Login and go to a group members page, for example:
/groups/test_gruop/-/group_members
- Open up the GraphQL Network Inspector in dev tool
- Click the
Invite members
button - After the invite member modal finish rendering, check the request error in the inspector
This bug happens on GitLab.com
Possible fixes
Guard the request on SaaS. Since from this MR:
this query won't be running on gitlab.com as it is self-managed only feature.
Edited by Roy Liu