Allow searching by path when using the invite widget
Problem to solve
When adding approvers to merge request approval rules or attempting to invite a user/group to a project, our current search implementation doesn't return results when a group's full path is entered. This means users are forced to search for the relevant group by using only the name of the group. Since we do not currently restrict eligible approvers by their permissions (see #2048), searching only by the name of the group may return results from other groups that using the same name, making the list of eligible approvers unnecessarily long.
For example, if I'd like to add my-group/my-subgroup
as an approver, I'd have to search for my-subgroup
and scroll through the list of returned results until I found my specific group. The following screenshot shows this behavior:
Intended users
Anyone working with other groups on GitLab.
User experience goal
The user should be able to quickly find and add the specific group they're looking for without having to filter through irrelevant groups that lay outside the scope of their project.
Proposal
Allow users to search for their intended group by using the full path to the group as the search criteria (e.g. /my-group/my-subgroup
).