Support WorkerRun on MetaData
- add
worker_run_id
FK onMetaData
(nullable, blank) - make it available in the admin details of a MetaData, using
raw_id_field
- expose it in
CreateMetaData
endpoint (required for UFCN) - bonus: expose it in
CreateMetaDataBulk
endpoint
Rules for endpoints:
- we only support
worker_version_id
XORworker_run_id
, raise a 400 if both are supplied - the endpoint must load the
WorkerRun
from its ID to check its existence - and use the related
WorkerVersion
asworker_version_id
on the resulting meta-datas (so we end up with both worker_version & worker_run being set on the MetaData)