Add lock status for truncate and delete
This MR adds handling for the cases when you attempt to delete or truncate a project when indexing is in-progress.
How to test
- Start a long-running indexing (or you can try to time it with a smaller repository)
- Execute
DELETE /indexer/index/ID
orPOST /indexer/truncate
while the indexing is still running - Ensure that it returns
423 Locked
Edited by Dmitry Gruzd