Move RevisionState on WorkerVersion
Bad design decision WorkerVersion
instead of the Revision
:
- remove
state
field fromRevision
- add a
state
field with the same values asRevisionState
(which is renamed toWorkerVersionState
) - allow retrieving & updating worker revision
state
field through the API - add a computed property
state
back onRevision
which 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