My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 203: Create projects though web interface
40 people starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  gustaf.l...@sonyericsson.com
Closed:  Apr 2012

Blocking:
issue 349


Sign in to add a comment
 
Reported by code-rev...@gtempaccount.com, Sep 24, 2009
Reported by Shawn Pearce <sop@google.com> on Thu May 28 19:30:22 PDT 2009
Source: JIRA GERRIT-203
Affected Version: 2.0.13

A "new project" button in Admin > Projects.  Should create the project in the
database, and also create the git repository.

If replication is enabled, this must also create the remote repository, via
direct shell, asking a remote gerrit to create repository, or by rsync'ing the
empty shell.
Sep 24, 2009
#1 code-rev...@gtempaccount.com
Update by Shawn Pearce <sop@google.com> on Thu May 28 19:31:47 PDT 2009

Change description to:
----
A "new project" button in Admin > Projects.  Should create the project in the
database, and also create the git repository.

If replication is enabled, this must also create the remote repository, via
direct shell, asking a remote gerrit to create repository, or by rsync'ing the
empty shell.
----
Sep 24, 2009
#2 code-rev...@gtempaccount.com
Comment by Shawn Pearce <sop@google.com> on Wed Aug 12 07:18:41 PDT 2009

https://review.source.android.com/11109 added support for this over ssh with
"gerrit create-project".  Will be in 2.0.19.
Sep 24, 2009
#3 sop+code@google.com
(No comment was entered for this change.)
Status: Accepted
Owner: ---
Feb 8, 2010
#4 sop@google.com
 Issue 436  has been merged into this issue.
Feb 18, 2010
#5 jjhel...@gmail.com
Wouldn't it be possible to create the missing repos on the remote automatically?  

This would make it easier to setup new mirrors.  Setting up a mirror now requires 
scripting to clone all the repos on the replication server.

Aug 20, 2010
#6 lincoln....@sonyericsson.com
Hi Shawn,
Ulrik asked me to take a look in this issue to see if is possible to solve it.
Do you know if is there already anybody working on this?
Thanks
Aug 20, 2010
#7 sop@google.com
Nope, nobody is working on this yet.
Owner: ulrik.sj...@sonyericsson.com
Aug 31, 2010
#9 lincoln....@sonyericsson.com
Shall the web interface handle the options from the command-line?
(--description, submit type, --user-contributor-agreements)
Aug 31, 2010
#10 sop@google.com
Actually, we might be OK with less options in the web UI.

If we get the project name, setup reasonable defaults
for owner to make sure the current user owners the new
project, we can jump them directly to the admin page
for the new project and let them further configure it.

So we probably don't need all of the options in the web
UI version since we have UI to edit things after creation.
Aug 31, 2010
#11 lincoln....@sonyericsson.com
OK, I'll develop the UI with project name and parent name text UI and let the other options with a default value (description, submit-type, branch...)
 
Nov 11, 2010
#12 hernan...@gmail.com
Please, please!!!
Jan 31, 2011
#13 man...@doninger.net
Is there some progress?
Jan 31, 2011
Project Member #14 ulrik.sj...@gmail.com
Change 17380, waiting for review.
Feb 7, 2011
#15 vitalie....@gmail.com
Here it is the link to the Change: https://review.source.android.com/17380
Aug 5, 2011
#17 Eugu...@gmail.com
This is sitting with no action for a while, so i think a little update will not hurt, especially considering that the issue i have submitted (436)was merged with this one:

trying version 2.2.1 now. It is still not very user friendly:
1. There is no automatic scan - one should have administrative privileges in order to add project by flushing the cache, because there is no even button "rescan" in administrative GUI?? Look at CGIT - they did it perfectly. You just need to specify the folder where your bare repos are and when you add them CGIT picks them up automatically, why bother with anything else??
2. Even after re-scan the projects are not created correctly, because pressing on the access link for such "imported" project causes NullPoiterException ( issue 1075 ) 
This is very confusing: now i still have to execute create-project which is probably not going to work because the repository already exist!!
3. Instead of forcing admins to create project manually (Look at CGIT!) teach gerrit to read a config file sitting in bare repo. It is much easier to create bare repo put config file to it and wait for gerrit to pick it up automatically with all info about owner and other stuff provided!!

Aug 5, 2011
#18 Eugu...@gmail.com
On p.3 i understand that there is a config already stored inside the bare repo which gerrit uses to store all information about the project. The problem though is that i was not able to find a way to edit this config directly. 
It is clear that current approach is gerrit-centric meaning that in order to be able to get everything done properly and quickly i have to create my bare repo through gerrit using SSH command or upcoming GUI, while in CGIT those things to be managed by config files.
The question is how should i configure 500+ existing repos that are supposed to be imported into gerrit in order to set owners, descriptions and other stuff i might want to set? I definitely don't want to do that manually... I already have some of this info in the bare repo... 
Nov 18, 2011
Project Member #19 gustaf.l...@sonyericsson.com
(No comment was entered for this change.)
Owner: gustaf.l...@sonyericsson.com
Apr 19, 2012
Project Member #20 bklarson@gmail.com
Any reason we can't close this as done?
Apr 19, 2012
#21 zu.bruce.china@gmail.com
no. this topic still have 2 features left in waiting review :)
https://gerrit-review.googlesource.com/#/c/34560/2
and
https://gerrit-review.googlesource.com/#/c/30811/
Apr 20, 2012
Project Member #22 bklarson@gmail.com
Thanks Bruce.  In my opinion we should close this as done.  The remaining changes just add a convenience popup to show what projects are available, but the function works fine without those changes.  They are an enhancement to this change, but not critical to the feature itself.  Let me know if you or Gustaf disagree :)
Apr 23, 2012
#23 zu.bruce.china@gmail.com
I will not say no :).
Apr 23, 2012
Project Member #24 gustaf.l...@sonyericsson.com
Fixed and released in 2.3
Status: Released
Sign in to add a comment

Powered by Google Project Hosting