<< Back to previous view |
[QB-2850] getUser on DefaultBuildEngine try calling UserManager.getByFullName if UserManager.get(userName); is null
|
|
Status: | Resolved |
Project: | QuickBuild |
Component/s: | None |
Affects Version/s: | 6.1.26 |
Fix Version/s: | 7.0.0 |
Type: | Improvement | Priority: | Minor |
Reporter: | John Landers | Assigned To: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Remaining Estimate: | Unknown | Time Spent: | Unknown |
Original Estimate: | Unknown |
Description |
getUser on DefaultBuildEngine try calling UserManager.getByFullName if UserManager.get(userName); is null
Adding call to getByFullName would reduce our user mappings. Bitbucket using full name and Quickbuild uses user name. private User getUser(Repository repository, String committer) { User user = userManager.get(userName); // add these lines if(user == null) { user = userManager.getByFullName(userName); } // done with added lines. if(user == null) { user = new User(); user.setName(userName); ..... Or adding a global user mapping configuration. |
Comments |
Comment by Robin Shen [ 23/Nov/16 11:53 PM ] |
Thanks for the suggestion. Will get it added in QB7 to be released in the end of this year. |