Allow updating the configuration and parent of a ModelVersion
https://redmine.teklia.com/issues/9210
src/components/Model/Versions/EditModal.vue
should have two additional fields to allow editing the configuration
and parent
of a ModelVersion.
The configuration
should be a <textarea>
where the existing configuration is shown as an indented JSON. Just like with worker configurations in JSON mode, JSON.parse
should be called after any change to this value, and any SyntaxError
errors should be caught and shown as help is-danger
errors. Only objects are allowed as well, not arrays or other primitive types. Leaving the field completely empty should result in {}
being used, just to make it easier to clear the configuration.
The parent
should use the ModelVersionPicker.vue
component, which we had used in training processes then never removed. Trying to make the model version a parent of itself should show a help is-danger
error.