Skip to content

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:

  1. add a "Create Dataset Process" in the corpus actions menu, right below the "Create Process"
    • A process is immediately created through CreateProces with mode = 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
  2. 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, calls CreateProcessDataset 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
  3. the worker run selection screen must work as usual on that process
  4. that same screen must then allow the user to start the process, like for worker processes