Imported GHE project issues and MRs keep importer's name
ZD: https://gitlab.zendesk.com/agent/tickets/17353
Summary
After importing projects from GHE issue authors are renamed to the importers name.
Description
From a conversation with @dbalexandre:
When we are importing issues/mrs we try to find the original author using the github id but for this to work the original author should had signed in before on the GitLab instance and associated their GitHub account. This is because we use the GitHub id to associate the issue / Mr and user's name.
If we don’t find the user in our database we set the project creator (most of the times the current user that started the import process) as the author but we keep a reference on the issue about the original author.
Suggestions
- Can we keep the author as the original user? This implies that it won't be actionable though.
- Can we use emails to match users from GHE? This would avoid login in through GitHub OAuth but still requires GitLab account. Disadvantage here is that the GitLab email might be different from the GH profile.
- Do nothing if the current route is the best or safest procedure.