Generate and store worker run summary
For performance reasons (when listing related worker runs on an element/transcription/...), we need to generate and store a summary of the worker run on the model instances
- add a non-nullable summary textfield on the
WorkerRun
- add a method
build_summary
onWorkerRun
model using the following algo:- start by describing worker version : "Worker {worker_version.model.name} @ {worker_version.git_refs | worker_version.short_hash}"
- when model is set, add: " with model {model_version.model.name} @ {model_version.short_id}"
- when configuration is set, add: " using configuration '{config.name}'"
- make a migration that creates the field as nullable, generates all summaries, then make the field non-nullable
- add a signal on pre_save that generates the summary automatically
- add unit tests for different cases