waldronlab / BugSigDB

A microbial signatures database
https://bugsigdb.org
7 stars 6 forks source link

Cascading deletion #176

Open lwaldron opened 1 year ago

lwaldron commented 1 year ago

Deleting a study should also delete all experiments and signatures under that study. Deleting an experiment should similarly delete all signatures under that experiment. This is not high priority but I think it's what curators intuitively expect, there's no use case for keeping these sub-pages, it can take a while to delete them one by one, and this change would greatly cut down on the number of orphaned pages. However, after a cascading deletion it should also be not too difficult to restore everything.

tosfos commented 1 year ago

We researched this. We can implement something, but it will take a good amount of effort. Since this is marked as "enhancement" & "low priority", please confirm we should go ahead.

lwaldron commented 1 year ago

Let's leave it for now, it will have a low impact as it only saves a little bit of time for administrators who have permission to delete studies, and deleting is an infrequent occurrence.

lgeistlinger commented 9 months ago

Yes so I think that would totally be needed.