Bug 446091 - [api] allow clients to determine when the current user owns an ITask
Summary: [api] allow clients to determine when the current user owns an ITask
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P2 major (vote)
Target Milestone: 3.15   Edit
Assignee: Sam Davis CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks:
 
Reported: 2014-10-06 17:20 EDT by Sam Davis CLA
Modified: 2015-03-13 16:38 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Davis CLA 2014-10-06 17:20:37 EDT
AbstractRepositoryConnector.isOwnedByUser does not work when the assignee field has options because ITask.getOwner returns the option label in this case. In theory connectors could override isOwnedByUser and use the repo config to reverse lookup the assignee value from the label, but that could be expensive, I don't know of any connector that does this, and in any case it should be handled by the framework. I propose adding a @getOwnerId@ method to @ITask@.

This was reported at https://www.eclipse.org/forums/index.php/t/822460/ as the task list assignee filter and icon in the tooltip not working for Mantis.
Comment 1 Sam Davis CLA 2014-10-06 17:24:47 EDT
WIP at https://git.eclipse.org/r/#/c/34473/
Comment 2 Sam Davis CLA 2014-11-27 17:31:28 EST
It's a bit late to get this in for 3.14 unfortunately, so I'm pushing it to the next release.
Comment 3 Sam Davis CLA 2014-12-15 14:48:29 EST
The Gerrit connector has the same problem
Comment 4 Sam Davis CLA 2015-03-11 18:04:30 EDT
43695: 446091: make task list assigned to me filter work for Gerrit [I7c5431cb]
https://git.eclipse.org/r/#/c/43695/
Comment 5 Sam Davis CLA 2015-03-13 16:38:49 EDT
The changes have been merged.