Community
Participate
Working Groups
Currently when we hover over a task summary in the task list, tooltip doesn't show information regarding the votes on the review. It may not be a bad idea to have the votes on the latest patch as well as the number of overall patches as part of the tooltip. Will attach the patch shortly.
I could think of two approaches here: 1- Retrieving and parsing json data of org.eclipse.gerrit.Review attribute as part of TaskListToolTip class or an extension of it, as GerritUtil does. 2- Extracting the voting info simply from inside the GerritConnector class and add it to the ATTRIBUTE_TASK_EXTENDED_TOOLTIP attribute and then just simply retrieve value of this attribute in TaskListToolTip.
There is currently no responsibility (In reply to comment #1) > I could think of two approaches here: > 1- Retrieving and parsing json data of org.eclipse.gerrit.Review attribute > as part of TaskListToolTip class or an extension of it, as GerritUtil does. There is not extensibility in the tooltip class to execute connector specific code at the moment. > 2- Extracting the voting info simply from inside the GerritConnector class > and add it to the ATTRIBUTE_TASK_EXTENDED_TOOLTIP attribute and then just > simply retrieve value of this attribute in TaskListToolTip. I would prefer doing that.
(In reply to comment #2) > > 2- Extracting the voting info simply from inside the GerritConnector class > > and add it to the ATTRIBUTE_TASK_EXTENDED_TOOLTIP attribute and then just > > simply retrieve value of this attribute in TaskListToolTip. > > I would prefer doing that. That said, the Gerrit voting maybe too complex to display concisely as text and could be a good use case for providing extensibility for custom tooltip content. That would be a larger effort though requiring a new extension point etc.
(In reply to comment #2) > There is currently no responsibility (In reply to comment #1) > > I could think of two approaches here: > > 1- Retrieving and parsing json data of org.eclipse.gerrit.Review attribute > > as part of TaskListToolTip class or an extension of it, as GerritUtil does. > > There is not extensibility in the tooltip class to execute connector specific > code at the moment. > > > 2- Extracting the voting info simply from inside the GerritConnector class > > and add it to the ATTRIBUTE_TASK_EXTENDED_TOOLTIP attribute and then just > > simply retrieve value of this attribute in TaskListToolTip. > > I would prefer doing that. I think we could consider adding these values to the Review model object. As approvals are basically connector specific, we will probably want to provide a reference to an interface for this. Then we could grab this data from the modeled objects, using a customized model label provider.
> (In reply to comment #2) > I think we could consider adding these values to the Review model object. As > approvals are basically connector specific, we will probably want to provide a > reference to an interface for this. Then we could grab this data from the > modeled objects, using a customized model label provider. The model side implementation of this is done. See bug 404933
Marking as an enhancement (so I don't keep seeing it in my list of outstanding bugs.. :)) Given issues above, do we still want to leave this open? We could retrieve the model when we open the popup. Wouldn't be *that* hard to accomplish. Personally, I'd find this information useful.
Since this bug was last active we've started recording some concise review vote information on review tasks, I think it would be wise to display this in the task list tooltip.
New Gerrit change created: https://git.eclipse.org/r/84052
New Gerrit change created: https://git.eclipse.org/r/84062
New Gerrit change created: https://git.eclipse.org/r/84171
New Gerrit change created: https://git.eclipse.org/r/84195
Gerrit change https://git.eclipse.org/r/84052 was merged to [master]. Commit: http://git.eclipse.org/c/mylyn/org.eclipse.mylyn.reviews.git/commit/?id=84dabea847998d58591390db2a4b9b1f9fe82c4f
Gerrit change https://git.eclipse.org/r/84062 was merged to [master]. Commit: http://git.eclipse.org/c/mylyn/org.eclipse.mylyn.reviews.git/commit/?id=0df605985bb87ffeeb842632fa207d61e713fc71
Gerrit change https://git.eclipse.org/r/84171 was merged to [master]. Commit: http://git.eclipse.org/c/mylyn/org.eclipse.mylyn.reviews.git/commit/?id=7b7f9d93067ec49bb0e2740993ccf8fe0c201659