Migrate user mentions in comments to correct user name on target instance
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=385170) </details> <!--IssueSummary end--> ### 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 1. 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`. 2. 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
issue