gigascience / gigadb-website

Source code for running GigaDB
http://gigadb.org
GNU General Public License v3.0
9 stars 15 forks source link

Delete user dropboxes that have been published or rejected #1947

Open rija opened 4 months ago

rija commented 4 months ago

User story

As a curator
I want user dropboxes no longer needed to be deleted
So that the storage usage stay under control

Acceptance criteria

Given a manuscript has been accepted
When the datasets files are published And I marked the user dropbox for deletion Then the related user dropbox is deleted

Given a manuscript has been rejected
When the dataset files are not published And I marked the user dropbox for deletion Then the related user dropbox is deleted

Additional Info

suggestion of implementation: Curator marks any user dropbox no longer needed as to be deleted. A weekend automated job will delete any directory that's marked as such. To mark a user dropbox as archived, it's enough the rename the dropbox as <drop box name>.todelete e.g, on the bastion server:

$ cd /share/dropbox
$ mv user112 user112.todelete
$ mv user112.orig user112.orig.todelete

Product Backlog Item Ready Checklist

Product Backlog Item Done Checklist

rija commented 4 months ago

This might be too soon, we should wait until the associated manuscript is published (which could be several weeks). This might be too soon, currently we wait 3 months incase the authors wish to resubmit a revised manuscript, or to refute the >editors decision to reject.

Hi @only1chunts ,

I've updated the acceptance criteria to make it clearer that you curators you are in control of what and when is to delete as per the suggested implementation.