Description
In our deployment syncing source code before indexing takes a lot time for some projects, so a scheme is used where syncing is done in parallel and then indexpart
is used for individual projects and once all these partial indexes are done, one global index run is done to discover newly added projects and remove data of deleted projects. The global index takes non-trivial time to run and can be avoided by having addproject
and delproject
sub-commands of the OpenGrok
shell script.
addproject
would scan project's repos, add the project to the configuration. The indexpart
could then index it and the config can be sent to the webapp (e.g. via the changes for #1355 or more fine grained Message).
delproject
would remove the project from configuration (and update the webapp) and remove project's index/xref/history data. This should take care of #1307.
To make this fully functional, some other changes are needed, like #1187.