Open j00bar opened 4 years ago
What namespace?
The search to https://galaxy.ansible.com/api/v1/users/?or__username__icontains=ares
returns 43 results, but we only show 10. Maybe we simply return more than 10 and add an orderby as a simple fix.
I think there are a couple of solutions
We could
There are pros and cons to each of these. I think the second might be my favorite though
How about istartswith
ordered ascending by username?
Exact match will come first. After that, it will be ordered by alphabetically. So long as you never hit a case where you don't see the exact match, no problems - you can keep typing to drill down.
Bug Report
SUMMARY
I was trying to add a GitHub user as an owner to my namespace whose username is a 4 letter word. There are more than 10 users in Galaxy whose username contains the 4 letter word. When I try to find him in the user picker with a search, despite the search being a perfect match to his username, he does not appear in the list of ten options. I have no way to refine the filter further.
STEPS TO REPRODUCE
ares
in the search box for Namespace Ownersares
appear, but not @ares himself.EXPECTED RESULTS
I expected the exact match to be the first result among the ten.
ACTUAL RESULTS