Cross-contamination between github and gitlab columns in contributors table
- Dominant language
- Python
- Stars
- 13
- Forks
- 17
- Avg merge
- 6h 59m
- Merged PRs (30d)
- 1
Description
> [!NOTE]
> Migrated from [augurlabs/augur#3469](https://github.com/augurlabs/augur/issues/3469)
> Originally opened by `@MoralCode` on 2025-12-15
---
im seeing lots of gh_* prefixed columns being used for gitlab data too...
_Originally posted by @MoralCode in https://github.com/chaoss/augur/issues/3435#issuecomment-3656839767_
While looking into this migration issue, I noticed that there are duplicate values in our database for the `gh_login` and `cntrb_login` fields in our db. Looking at a full row from one dupicate user, its clear that this data came from two different forges (one github, one gitlab).
There seems to be several issues here:
- cntrb_login and gh_login may both be populated together by both the github events task and the gitlab issue comments task.
- for the gitlab user, gl_username is NULL
- gh_avatar_url has a non-null value for the gitlab user (seems incorrect given the table name) while the gl_avatar_url field is NULL
- same thing for gh_url
- gh_user_id has a value for the gitlab user, while gl_id is NULL
Further, it seems like the gitlab username and other contributor data is largely being populated in the columns that have `gh_*` prefixes. This means that our Database models, which are seemingly written to enforce username uniqueness for gh and GL usernames separately, are not able to actually do so (and may not even be currently being constrained)
Contributor guide
Assessment
This issue has not been assessed yet.