Skip to content

Repeated repo name when analyzing repos with deep URIs #100

@canasdiaz

Description

@canasdiaz

The field 'name' of the repositories table is useless when we have different repos with different URIs but same last token. Example:

mysql> SELECT * FROM repositories WHERE name = 'core';
+-----+-----------------------------------------------+------+------+
| id  | uri                                           | name | type |
+-----+-----------------------------------------------+------+------+
|   5 | https://gerrit.wikimedia.org/r/pywikibot/core | core | git  |
|  67 | https://gerrit.wikimedia.org/r/mediawiki/core | core | git  |
| 282 | https://gerrit.wikimedia.org/r/oojs/core      | core | git  |
+-----+-----------------------------------------------+------+------+
3 rows in set (0,00 sec)

This bug affects GrimoireLib due to it gets SCM data grouping by 'name'. This bug was repored by the Wikimedia folks (https://phabricator.wikimedia.org/p/jayvdb/) in the following ticket https://phabricator.wikimedia.org/T123808#1970520

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