Add ListProcessDatasets and CreateProcessDataset
Requires #1547 (closed) and #1549 (closed)
Step 4 of https://redmine.teklia.com/issues/3653: On processes with the new Dataset
mode, we need to be able to list the datasets currently linked to a process and add new ones. ListProcessDatasets
takes a process ID as a URL parameter and returns dataset serializers, and CreateProcessDataset
also takes a dataset_id
in its request body to add a new dataset to the process.
Read access on the dataset's corpus is required in order to select it. No validation is necessary on the dataset state.