Skip to content

Improve search results for fork project's dropdown

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Follow-up for https://gitlab.com/gitlab-org/gitlab/-/issues/378243

Problem

Reported by @pbozso (https://gitlab.com/gitlab-org/gitlab/-/issues/378243#note_2309285009)

Unfortunately, this problem still persists today in GitLab Enterprise Edition 17.9.0-pre 0c7392203c8 on gitlab.com.

The search field for “Project URL” on the “Fork project” page is very unreliable. Even when I search for the exact path of the group I want to put my fork into, in good cases, it’s usually only the 6th or 7th element in the list. In bad cases, it's totally lost somewhere in a strangely long list of options:

image

Details

Changes implemented in !145230 (merged) updated the search logic to select only the last part of the search string. This enables users to find namespaces by their full path, but as a downside, it returns a long list of matches for generic namespace names like project.

Example of the GraphQL query:

query {
  project(fullPath: "gitlab-learn-labs/sample-projects/tanuki-racing" ) {
    id
    forkTargets(search: "vyaklushin-ultimate/project") {
      nodes {
        id
        fullPath
        name
        visibility
        __typename
      }
      __typename
    }
    __typename
  }
}

Potentially it can be resolved after Optimize query in Groups::AcceptingProjectCreat... (#437731) is closed. See details.

Edited by 🤖 GitLab Bot 🤖