dataverse-frontend icon indicating copy to clipboard operation
dataverse-frontend copied to clipboard

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

Open DS-INRAE opened this issue 2 years ago • 3 comments

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 :

  • https://github.com/IQSS/dataverse/issues/3702

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

DS-INRAE avatar Oct 17 '23 13:10 DS-INRAE

@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

pdurbin avatar Oct 17 '23 13:10 pdurbin

Corresponding PR in non-SPA :

  • https://github.com/IQSS/dataverse/pull/10137

DS-INRAE avatar Dec 22 '23 10:12 DS-INRAE

When implementing this, this issue should be taken into account too :)

  • #243

DS-INRAE avatar Oct 07 '24 09:10 DS-INRAE