Skip to content

Improve order of mention autocomplete results

Heinrich Lee Yu requested to merge improve-order-user-autocomplete into master

What does this MR do and why?

Orders project members ahead of groups since these are more commonly used. Also orders groups by full_path instead of just path.

Screenshots or screen recordings

This is how it works today:

Screenshot_2023-10-14_at_12.23.27_AM

Project members aren't shown in the initial autocomplete if you have a lot of groups because we only show 10 results. Also, notice that the groups are ordered by path rather than full path.

The ordering is also kept when searching:

Screenshot_2023-10-14_at_12.24.09_AM

Notice that the groups are ahead of project members.

This MR switches the ordering so that project members are ahead of groups and groups are ordered by full_path.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Heinrich Lee Yu

Merge request reports

Loading