Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




svn connector: how does Gemini decide which user to associate the checkin comment with?

install
admin

Hi,

I have insalled Gemini with the sample database plus the SVN connector, and added another project. When I check some code in, I set the bugId in TortioseSVN and commit. Looking at the isseue in Gemini I can now see a comment detailing the files added, along with my svn name as author. All good so far.

The issue is that the name used for the comment itself is not me, it's somone else who is not even involved in this project.

I log into both Gemini and SVN as 'skinner_m', but the name on the comments is 'Manager Person' ('manager' account)

How can I make the comment name match the user who actually did the checkin?

regards,

Mike

User32167
· 1
User32167
Replies (3)
helpful
1
not helpful

The user is taken from the svn connector config file. You can change the source code of the SVN connector to do this.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

thanks for the swift response, I see whats going on now.

I'll have a look at the source, can't imagine I'm the only one who's wanted this feature though... :)

cheers,

Mike.


User32167
· 1
User32167
helpful
1
not helpful
ANSWER

Hi, seems to work fine now.

For anyone else thats interested, I changed the code as follows:-

PostCommitHandler.cs line 135 was:

sourceControlComment.UserID = Program.GeminiServiceManager.UsersService.WhoAmI().UserID;

replaced with:

sourceControlComment.UserID = Program.GeminiServiceManager.UsersService.GetUserByName(author).UserID;
if( sourceControlComment.UserID == 0 )
    sourceControlComment.UserID = Program.GeminiServiceManager.UsersService.WhoAmI().UserID;

so it trys to use the svn name, else falls back to old behaviour. I'm sure someone else can come up with a more elegant solution, but this will do for us for now :)

cheers,

Mike

··· Many thanks for sharing your solutionMark WingFriday, May 27, 2011, 10:07:57 AM

User32167
· 1
User32167