Archive workers
Requires !2190 (merged), closes #1656 (closed)
This adds an ArchivedField
, which makes the link between the nullable datetime in the database and the boolean exposed in the API, and can be reused for #1657 (closed). It uses a new is_archivable
permission, which requires admin rights on the worker or the repository. I found and fixed an N+1 query on StartProcess
while implementing the restrictions on the various endpoints.
Edited by Erwan Rouchet