Skip to content

Archive workers

Erwan Rouchet requested to merge worker-archived into master

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

Merge request reports

Loading