FS#2322 - Mention System

Hello together,

it would be nice, if you could mention user in your ticket or comment which are not following the task.for example when i will type @nickname, the user “nickname” should be get a e-mail that he is mentioned in the ticket.

(if we are “fancy” then we can print a automcomplete after the @-sign ist typed)

If a user is mentioned in a task or comment, should that user be added to the notification list if he is not yet there?

hm when i compare it to other systems, then a mention would not add him to the notification list. i think it is the decision of the user to go to the list. or when the user want this user explicit in this list. i would only send him one notification when he is added to a task or a comment.when the task/comment will be edit he dont get a e-mail.

Maybe the datetime fields are not needed, just thought of a user had disabled mention notifications, then enables mention notification again, then a summary of time between last received mentions and now could be received. (meanwhile you were mentioned 1234 times in task and comments since you disabled notifications .. lol, or a list of tasks)

One more thing: How to handle (or prevent?) username retaken by other user after a user deleted himself or was deleted by admin?

Example

2019 someone registers with username usera. This user had activity in the system and also some mentions of that users made by other users.

2020 that user deleted his account or admin deleted the account.

2021 another user tries to register with that username usera (usera username is not in user table anymore). Suddenly this new user would inherit the mentions of that deleted user.

What solutions are possible?

Keep a list of all deleted usernames. They are also checked by register form validations in addition to user table entries.

Only keep a list of all deleted usernames who have a mention in task description or comment text or any other dokuwiki syntax powered text fields.

Do not care about it. (Not a bug, it's a feature.)

Currently it is intentional not possible in the user interface to change a username. But as the username is stored only in user table, it would be simple to change with an sql query and everything is fine again. (unique field)

With the introduction of a mention link system this would be harder. It would mean not only to change username in user table, but also replace every mention of that username in all tasks and comments. As there should be no replacements in code section of task descriptions/comments or similiar portions, this cannot be done by simple search&replace in the database, but requires using of dokuwiki parser when dokuwiki is in use.

Another also complex way would be replacing

@username

with something like

[@userid]

(just idea example) when saving task/comment, because userid is unique regardless if user get deleted and reregister with same username.And on output or edit it is replaced back to its