History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-2850
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: John Landers
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

getUser on DefaultBuildEngine try calling UserManager.getByFullName if UserManager.get(userName); is null

Created: 23/Nov/16 06:15 PM   Updated: 13/Jan/17 02:02 PM
Component/s: None
Affects Version/s: 6.1.26
Fix Version/s: 7.0.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
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.


 All   Comments   Work Log   Change History      Sort Order:
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.