My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2208: REST-Endpoint for getting Project-Clone-URLs
1 person starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Jan 6


Sign in to add a comment
 
Project Member Reported by u.wol...@gmail.com, Oct 20, 2013
I have not found a REST-Endpoint for getting a projects clone urls. Probably it could be added to project infos (ProjectInfo bean) like it's added as a FetchInfo for changes.
Feb 21, 2015
Project Member #1 u.wol...@gmail.com
Suggestion: Extend ProjectInfo with a new map: "public Map<String, String> clone;". This map contains clone url for every protocol (key: protocol, value: url).

I would be happy to get feedback before I start implementing it.

Also, is there a clean way to build the clone urls? I have only found one merthods which contain GWT specific code: com.google.gerrit.client.download.DownloadUrlLink.*Link#getUrlData
Or does it also need to depend on the download-commands-plugin?
May 5, 2015
Project Member #2 u.wol...@gmail.com
Any feedback / input to my proposal above?
May 5, 2015
Project Member #3 edwin.ke...@gmail.com
> Suggestion: Extend ProjectInfo with a new map: "public Map<String, String> 
> clone;". This map contains clone url for every protocol (key: protocol, value: 
> url).
+1 this sounds good to me

> Also, is there a clean way to build the clone urls?
No, we need a better implementation for this. At the moment this is done on client side by reusing the CHECKOUT download command type...

> Or does it also need to depend on the download-commands-plugin?
I think it would be good to have an extension point for CloneCommand's similar to how we already have it for DownloadCommand's. This new extension point should then be implemented in the download-commands plugin.
May 7, 2015
Project Member #4 edwin.ke...@gmail.com
Recently I've implemented a new REST endpoint that provides some server configuration data. Besides others, it also includes the download schemes [1]. It seems that the URLs of the download schemes can be used to construct the clone URLs on client-side [2]. Maybe this is already sufficient for you. At least it cleans up some of the mess we have with the download commands in the Gerrit WebUI.

[1] https://gerrit-review.googlesource.com/67572
[2] https://gerrit-review.googlesource.com/67743
May 7, 2015
Project Member #5 u.wol...@gmail.com
Edwin, thanks for your reply. The new REST endpoint seems to provide everything what I need. I'll report back once I have implemented it in the gerrit-rest-java-client (and thus the IntelliJ plugin).
May 7, 2015
Project Member #6 edwin.ke...@gmail.com
Please take care that there is still a small modification coming:
  https://gerrit-review.googlesource.com/67735
May 12, 2015
Project Member #7 edwin.ke...@gmail.com
https://gerrit-review.googlesource.com/67841
Status: ChangeUnderReview
Jan 6 (4 days ago)
Project Member #8 u.wol...@gmail.com
(No comment was entered for this change.)
Status: Released
Sign in to add a comment

Powered by Google Project Hosting