google-code-export / marinemap

Automatically exported from code.google.com/p/marinemap
Other
1 stars 2 forks source link

Undo-able feature deletion #488

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if a user could somehow restore a deleted feature.

A few options:
1) A 'mark as delete' property on every feature. DELETE would actually just set 
this to True and a celery task would sweep through later on and delete it. 
Querysets would need to check for and filter out those features marked for 
deletion. Easily reversible by setting property.

2) An 'orphanage' user who would take ownership of the feature when it was 
"DELETED". The owner would change, sharing_groups removed and collection 
associations removed. The user would need to be installed by fixture and not be 
a member of any group. Not easy to reverse wrt sharing and collections. Easier 
to implement than #1 in that we don't need to filter out the 'marked as 
deleted' features everywhere.

Additionally, we'll need some way trigger the undo. A UI workflow for undoing 
would be needed Or we could just make it a special case, contact the admin sort 
of deal. 

Original issue reported on code.google.com by perrygeo...@gmail.com on 17 Mar 2011 at 9:23