IQSS / dataverse-frontend

An upcoming and modernized UI for Dataverse
Apache License 2.0
19 stars 16 forks source link

Feature request : Return to Author - feedback note in the UI #201

Open DS-INRA opened 11 months ago

DS-INRA commented 11 months ago

Overview of the Feature Request As a curator, When I click on "Return to author" in an "In review" dataset, I can fill in a feedback note, In order to inform the depositor of what additional/edits are needed.

What inspired the request? See this issue for discussion :

This issue is just to highlight/document the need of this feature in the SPA :)

pdurbin commented 11 months ago

@DS-INRA perfect. Thanks. To reiterate what I said in the other issue, there is already an API for this that the SPA can use: https://guides.dataverse.org/en/6.0/api/native-api.html#return-a-dataset-to-author

{
  "reasonForReturn": "You forgot to upload any files."
}

curl -H "X-Dataverse-key: $API_TOKEN" -X POST "$SERVER_URL/api/datasets/:persistentId/returnToAuthor?persistentId=$PERSISTENT_ID" -H "Content-type: application/json" -d @reason-for-return.json

DS-INRA commented 9 months ago

Corresponding PR in non-SPA :