Create dataset process
Refs https://redmine.teklia.com/issues/3653
The main goal is to create new processes for datasets through the Arkindex frontend.
It will mimick the current worker process creation:
- add a "Create Dataset Process" in the corpus actions menu, right below the "Create Process"
- A process is immediately created through
CreateProces
withmode = Dataset
- the corpus being browsed at the time is used to create the process
- no other field is set for
CreateProcess
(they are only relevant for worker processes) - the user is then redirected on a new component at the url
/process/:processId/datasets
- A process is immediately created through
- this new component allows the process creator (and other corpus admins) to manage the datasets used in the process
- a first
<select>
allows the user to pick a corpus. It defaults to the process initial corpus - when a corpus is picked,
ListCorpusDatasets
is called and all its results are displayed in a second<select>
- a button named
Add
simply pick the currently selected dataset, callsCreateProcessDataset
and adds it to a table below, displaying:- copyable dataset ID
- corpus name
- dataset name
- dataset sets names
- an action "Delete" to remove that dataset using
DestroyProcessDataset
- after that table a button named "Configure workers" redirects the user to the existing worker run selection screen
- a first
- the worker run selection screen must work as usual on that process
- that same screen must then allow the user to start the process, like for worker processes