Migrate user mentions in comments to correct user name on target instance
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem
Currently a situation occurs:
- in the text of a comment on the source instance there's a mention of a username of user A
- that username on target instance is already taken - it belongs to a user B
- user A registers on target with a necessarily different username that they had on source.
Since usernames mentioned in the comments are left unchanged during migration, in the migrated comment we see a mention of the username of user B, and that is confusing.
Clarification: User contributions are mapped correctly and user B is not added as a member to a project. The issue is only with mentions.
Proposed solution
- If user A has an account on both instances, convert usernames in comments:
- user A on source has username
@piekny
- user A on target has username
@piekny123
- mentions of username of user A, when migrated to the target, should be converted from
@piekny
to@piekny123
.
- If user A does not have an account on target,
- mentions of username of user A should not be anchors and should not show an avatar on hover (otherwise they would link to the wrong user)
- document this behaviour
Edited by 🤖 GitLab Bot 🤖