Skip to content

Implement a reliable system to @-mention users in comments #6635

@pablobm

Description

@pablobm

Problem

(Taken from #6612 (comment))

Currently, users can mention other users by username using an "@-mention" in comments, etc. This creates a link to the mentioned user, and potentially sends a notification message (not sure this actually happens currently, but it's planned). When this happens, the username is stored as part of the comment text as entered, verbatim.

The problem is that users can change username at any time, making pre-existing @-mentions to them misleading. These mentions are left linking to non-existent users, or even to the wrong user if in the future someone else renames to a vacated username. In addition, we are aware that this has been used maliciously in the past.

Description

Implement a selector of the sort you see in other apps (eg: GitHub, Slack), where you get a dropdown the moment you enter an "@" character, and then this gets stored as @[user_id:$USER_ID] (or something to that effect) that is interpreted and replaced as appropriate when renderding.

This implementation would also allow referring to users with spaces in their names, closing #6614. It would also reduce the chance of misspelling usernames.

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions