x-atlas-consortia / data-ingest-board

The UI App for HuBMAP and Sennet Data Publishing Dashboard
MIT License
1 stars 0 forks source link

Add ability to bulk select datasets to submit for processing #173

Closed maxsibilla closed 6 months ago

maxsibilla commented 8 months ago

For admin users we want to add a checkbox for each row so that they can select multiple datasets to submit for processing.

In the SenNet Ingest API we have the endpoint privs/has-data-admin (https://github.com/sennetconsortium/ingest-api/blob/a908b78726e7bc7cae01a811b238f32da86e14ce/src/routes/privs/__init__.py#L70-L82) that utilizes HuBMAP commons to check if the user has administrative privileges, this may need to be implemented in the HuBMAP Ingest API so we can keep the same endpoints.

For both SenNet and HuBMAP we will need to create a new endpoint in the Ingest API that will accept a list of UUIDs that will batch update the statuses (PUT to Entity API) then issue a PUT to a new pipeline endpoint to support batch dataset processing.

We will also need to create a new Entity API endpoint that will support the batch update of statuses.