Community
Participate
Working Groups
In various places we are comparing usernames from task data with the repository username, e.g. to determine whether to decorate comments, attachments, etc. with the PERSON_ME icon. We should create a method isCurrentUser(String) in AbstractRepositoryConnector so that connectors can override this comparison if the user ID stored in TaskData is not the same as the one used to log into the repository.
I think this not needed. Connectors can override get/setRepositoryPerson in TaskAttributeMapper to create person's with the correct username.
Reopening because RepositoryPerson provides no way to store the username. We shouldn't store that in the id field, because that is what gets put in the task data. Some systems have two identifiers for a person: a human-readable username and an opaque ID which is stored in task data and in RepositoryPerson. We'll also need to add a method to RepositoryPerson to compare with a username.
Gerrit change https://git.eclipse.org/r/61401 was merged to [master]. Commit: http://git.eclipse.org/c/mylyn/org.eclipse.mylyn.tasks.git/commit/?id=262b4f0876b7abae93c83d7747295f0b3d1d268c