Skip to content

Support modern configuration in document exports

https://redmine.teklia.com/issues/12378

Requires backend#1984 (closed)

src/components/WorkerConfiguration/Form.vue should be updated to take a WorkerVersion and a Corpus as props, instead of a full WorkerRun. This is needed to allow creating configurations outside of the context of an existing process and WorkerRun.

src/components/ExportProcessModal.vue should stop using the old user_configuration form, as well as directly using the new CorpusExportField, and should use the new Form instead, providing it with the WorkerVersion for the system worker used for this export and the Corpus that it will be exporting.

It should call configurationStore.editNew with the WorkerVersion to start editing, then send the .generatedConfiguration as the configuration to CreateExportProcess. On success, it should also call .cancelEdit() to erase everything. It should no longer send any export_id, since that is now embedded into the configuration.

Edited by Erwan Rouchet