Two repositories with the same names, but different capitalization (e.g. myproject and MyProject) override each other, and only one will appear.
myproject
MyProject
This is specifically demonstrated in Fedora-Badges and fedora-badges. You can see that the old one still exists by looking at the @fedora-badges group.
If you visit either of the repos, it will always send you to Fedora-Badges. The old repo, fedora-badges, seems to be inaccessible from the front-end. However, a git clone will pull the old repo down as expected.
Fedora-Badges
fedora-badges
git clone
I'm going to file a ticket soon in Fedora Infrastructure to request the merging of these two specific repositories (i.e. into the fedora-badges namespace). Not sure when this will be reviewed, but as an added context in case the issue isn't able to be replicated later…
This issue was created before we turned on ignoring casing (which can be turned back off as we did for dist-git), so it won't happen again.
I am +1 on removing the old (lower case) project from the DB and this should actually fix the entire issue.
Do you agree with removing the old (lower-case) fedora-badges project?
I'm see three issues associated with it and one PR (as well as one fork):
pagure=# select id, user_id, name, namespace, parent_id from projects where name ilike 'fedora-badges'; id | user_id | name | namespace | parent_id ------+---------+---------------+-----------+----------- 3059 | 443 | Fedora-Badges | | 1987 1987 | 21 | Fedora-Badges | | 860 | 133 | fedora-badges | | 2645 | 116 | Fedora-Badges | | 1987 1011 | 606 | fedora-badges | | 860 (5 rows)
(Shows the fork, project 1011)
The issues and the PR:
pagure=# select id, uid, title from issues where project_id=860; id | uid | title ----+----------------------------------+------------------------------- 2 | 75546108c2f646e7b9c4c658a19490ed | Example Badges Issue 3 | 48251161766a44a6a913937e51b999c2 | Testing Suggest a Badge 4 | 331fd7ec65214ff9952ac821aec65c4b | Anitya does not grand a badge (3 rows) pagure=# select id, uid, title from pull_requests where project_id=860; id | uid | title ----+----------------------------------+------------------ 1 | b34d88fe7df1472ab4b7b2c601fb6d1f | Update README.md (1 row)
@pingou said… Do you agree with removing the old (lower-case) fedora-badges project?
Yes, the old one can be blown away. There's nothing of value there.
Cleared :)
pagure=# delete from projects where id=1011; DELETE 1 pagure=# delete from issues where project_id=860; DELETE 3 pagure=# delete from watchers where project_id=860; DELETE 2 pagure=# delete from projects where id=860; DELETE 1
Metadata Update from @pingou: - Issue close_status updated to: Fixed