Move RevisionState on WorkerVersion
Bad design decision WorkerVersion instead of the Revision:
- remove
statefield fromRevision - add a
statefield with the same values asRevisionState(which is renamed toWorkerVersionState) - allow retrieving & updating worker revision
statefield through the API - add a computed property
stateback onRevisionwhich behaves like this:
- if there is a worker version in error, use error
- elif there is a worker version in processing, use processing
- elif all worker versions are available, use available
- else (no worker version or other states) default to created