| Summary: | decorate user's comments in Gerrit reviews | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Kevin Sawicki <kevin> | ||||||||||||
| Component: | Mylyn | Assignee: | Kevin Sawicki <kevin> | ||||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||||
| Severity: | minor | ||||||||||||||
| Priority: | P3 | Keywords: | contributed | ||||||||||||
| Version: | unspecified | ||||||||||||||
| Target Milestone: | 0.9 | ||||||||||||||
| Hardware: | All | ||||||||||||||
| OS: | All | ||||||||||||||
| Whiteboard: | |||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Kevin Sawicki
Thanks for pointing that out. We should look into fixing that. Created attachment 201511 [details]
Patch to mark comments owned by current user
Check repository account id against comment author id
Created attachment 201512 [details]
Screenshot post fix
I have attached a patch that caches the account id as a property on the task repository and compares it with the author user id when iterating over comments. Thanks for the patch. The idea looks good to me. I wonder though if we could use the account object that's already retrieved in GerritClient.getInfo()? I have a bit of a preference to store the account mapping as part of the configuration rather than the TaskRepository object. It seems fine to do it the way it is done in the patch for now though. Once we need to store additional fields we may want to reconsider. Would you be okay with making GerritClient.getAccount(IProgressMonitor) public instead of private? (In reply to comment #6) > Would you be okay with making GerritClient.getAccount(IProgressMonitor) public > instead of private? Sure, that seems fine. Created attachment 201526 [details]
Second patch
Calls GerritClient.getAccount directly
Created attachment 201527 [details]
Third patch
Created attachment 201528 [details]
Fourth patch
Thanks Kevin! I have committed the patch as 95e0a9427073528b83d5066fcb5ca0ec29a82c55. |