Skip to content

proxyPreparations should look-up projects by URL to avoid creating duplicates #1278

@kriswest

Description

@kriswest

Describe the bug
I noticed that proxyPreparations is still looking up projects by project and name, where it should probably do so by URL instead:

defaultAuthorisedRepoList.forEach(async (x) => {
const found = allowedList.find((y) => y.project === x.project && x.name === y.name);
if (!found) {

This could result in creating a duplicate repo if the project or name wasn't set for a repo (as they are not required).

Expected behavior
Repositories with duplciate URLs aren't created accidentally

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions