Skip to content

User name autocompletion list only includes users who are project members

Summary

In an open-source project it is common to allow anyone to file tickets. However, the issue search field's autocompletion function (e.g. when completing an author: query) only completes the user names of project members.

Steps to reproduce

Navigate to GHC's issue tracker. As can been seen, @andrewthad is a valid user in the installation. However, typing author:@andrewthad does result in a completion.

Adding `@andrewthad

Example Project

https://gitlab.staging.haskell.org/ghc/ghc/issues/?scope=all&utf8=%E2%9C%93&state=opened&author_username=andrewthad

What is the current bug behavior?

Only usernames of project members are completed.

What is the expected correct behavior?

In the case of an author: query the username of anyone who has authored an issue should be included in the completion list (likely in addition to project members).

Likewise, in the case of an assignee query the list should include all project members as well as users who are assigned an issue.

In short, the autocompletion list should include all values of a field that the user would find in the query results.

Possible fixes

Be less selective in the generation of the user autocompletion list.