Skip to content

Search UI for adding projects to CI/CD Token access allow list cannot find username-qualified projects

Summary

Adding projects to CI/CD token access allow list is counter-intuitive. To add a project, one needs to know the qualified project name to select the correct project (eg, "someuser/someproject"). However, searching for the qualified project name yields no results, until the user realises they must search for the unqualified name ("someproject").

This is made more confusing for the user, since the displayed allow list shows fully qualified names.

Steps to reproduce

  1. Access settings page: Project -> Settings -> CI/CD -> Token Access
  2. Assuming Limit access to this project is enabled
  3. Click Add group or project
  4. In search box for Pick a group or project, type a qualified project name of the form someuser/someproject
  5. Observe that the project cannot be found.

What is the current bug behavior?

When searching for the qualified project name "someuser/someproject", the project cannot be found. The project can only be found when searching for the unqualified name "someproject".

What is the expected correct behavior?

Searching for "someuser/someproject" should find the specific project instance.

Output of checks

This bug happens on GitLab.com

Proposal

Based on further discussion, we will be removing the search functionality. Instead, users will need to provide the path for the group or project when adding to item to the allowlist.

(See #470880 (comment 2170480313)).

Edited by Jocelyn Eillis