Issue 436: add projects from GUI or automatically
Status:  Duplicate
Merged:  issue 203
Owner: ----
Closed:  Feb 2010
Reported by Eugu...@gmail.com, Feb 5, 2010
It seems reasonable to have an interface which allows either rescan the
base dir configured as the repository storage in order to find new projects
and add them automatically or add projects by browsing the specified folder
and have a possibility to select one or few and add from GUI.

I think that the rescan is preferred - and it can actually work
automatically the same way CGIT does or it can be explicitely triggered by
admins.
Feb 8, 2010
#1 sop@google.com
Projects can be added over SSH via gerrit create-project[1].  Or can be
scanned out of the directory by running init[2] again.

[1] http://gerrit.googlecode.com/svn/documentation/2.1/cmd-create-project.html
[2] http://gerrit.googlecode.com/svn/documentation/2.1/pgm-init.html
Status: Duplicate
Mergedinto: 203
Feb 8, 2010
#2 Eugu...@gmail.com
Yes, i agree with that - i was thinking that there might be a place for a bit more user 
friendly way of doing that, without stopping gerrit for reinit (i'm not sure reinit 
requires restart thoug, but as i understand it is better to restart) and without long 
command line involving SSH authentication (although i should admit it is very nice to 
have for scripting purposes)
Periodic scan seems to be perfect from that point of view. 

Aug 5, 2011
#3 Eugu...@gmail.com
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 ther 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!!