Skip to content

[Bug][GitLab] Same named repositories not well handled #8827

@themadbit

Description

@themadbit

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

When adding scope to the GitLab connection, if there are multiple repos with the same name, all repos are populated with the same name, and this makes it impossible to tell which exact repo I want to add to a project.

Image

What do you expect to happen

When adding repos to the GitLab connection, if there's an already existing repo with that name, the user should be prompted to take an action. Rename the repo from their source, rename the repo as devlake, will reference it, or, when a user is choosing the repo to add, it should show the full path of the repo.

NB: This happens because GitLab has groups and subgroups that might have repos with the same name.

How to reproduce

Have to repos with the same name and add them to the GitLab Connection.
Create a project.
Add scopes to the project.
When adding the repo scopes, you'll see both named correctly
It will be difficult to tell which repo you want for this project

Anything else

No response

Version

v1.0.3-beta10@99376a8

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/config-uiThis issue or PR relates to config-uipriority/highThis issue is very importantseverity/p1This bug affects functionality or significantly affect uxtype/bugThis issue is a bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions