Allow eagerly optimizing repositories
The OptimizeRepository RPC performs the optimizations heuristically. As a consequence it cannot be determined whether it actually did anything at all. While this is done by design to reduce the amount of time spent in this RPC, there are usecases where we want to eagerly optimize a repository. The most important usecase is when a repository admin clicks on "Run housekeeping tasks", where they rightly expect us to indeed perform optimizations.
We should likely introduce a new field to OptimizeRepository
that controls this and allows eager repacking.