Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 387759 - [Review request] Cannot review when ssh URL is used
Summary: [Review request] Cannot review when ssh URL is used
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Git (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 1.0 M2   Edit
Assignee: Edyta Przymus CLA
QA Contact:
URL:
Whiteboard: gsoc2012
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-22 05:11 EDT by Malgorzata Janczarska CLA
Modified: 2012-08-28 04:26 EDT (History)
2 users (show)

See Also:


Attachments
New section in Review Request page (54.31 KB, image/jpeg)
2012-08-22 14:09 EDT, Edyta Przymus CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Malgorzata Janczarska CLA 2012-08-22 05:11:58 EDT
I recently got an email with review request that works really cool. The only problem I had was that the requester have been using a SSH URL to the repository. I am also using ssh url for my repository, but our URLs differ with the user name, therefore the remote URL could not be matched, I also couldn't re-clone the URL I got, becuase I would have to use the requester credentials. I had to edit the URL I got in mail and only then I could do the review. It would be nice if the review page could match the remote regardless the user name in the URL.
Comment 1 Edyta Przymus CLA 2012-08-22 05:21:58 EDT
Hello Małgorzata,

could you please provide me example of these URLs? Because as I understand this issue, the both URLs you mentioned are URLs to different repositories (your own and requester's) and the commit that should be review doesn't exist in your own repository. So you have to fetch from requester in this case.
Or do I understand this issue wrong?
Comment 2 Malgorzata Janczarska CLA 2012-08-22 05:29:15 EDT
I got review request from Ken, this is an URL:

https://orion.eclipse.org/git/pullRequest.html#ssh://kwalker@git.eclipse.org/gitroot/orion/org.eclipse.orion.server.git_b2ba7b1fd083376d3286943b4b4b92ae23afab99

The commit exists in my repo, I performed fetch. The problem is my repo is

ssh://mtomczyk@git.eclipse.org/gitroot/orion/org.eclipse.orion.server.git

so I had to change the URL to:

https://orion.eclipse.org/git/pullRequest.html#ssh://mtomczyk@git.eclipse.org/gitroot/orion/org.eclipse.orion.server.git_b2ba7b1fd083376d3286943b4b4b92ae23afab99

URL kwalker@git.eclipse.org/gitroot/orion/org.eclipse.orion.server.git was not matched with ssh://mtomczyk@git.eclipse.org/gitroot/orion/org.eclipse.orion.server.git. I've been proposed to clone ssh://kwalker@git.eclipse.org/gitroot/orion/org.eclipse.orion.server.git, but I couldn't because I would have to know Ken's password.
Comment 3 Edyta Przymus CLA 2012-08-22 05:38:24 EDT
Ok, I see this issue. I have to discuss it with Szymon, but my first and probably the simplest idea is to introduce additional section "similar review requests", where links to the repositories with only user's name changed will be listed. You can simply click it and new Review Request will be open.
Comment 4 Edyta Przymus CLA 2012-08-22 14:09:06 EDT
Created attachment 220153 [details]
New section in Review Request page
Comment 5 Edyta Przymus CLA 2012-08-22 14:09:55 EDT
https://github.com/edytaprzymus/orion.client/commit/cd7e4a72fd3f50a21aee955acc34b57397d4313f
This is my solution. Please try it and let me know if it's works as expected.
Comment 8 Szymon Brandys CLA 2012-08-28 04:26:52 EDT
Looks ok. You could use dojo url object instead of parsing urls manually. See http://dojotoolkit.org/reference-guide/1.7/dojo/Url.html.