GoogleCodeArchive / tapirwiki

Automatically exported from code.google.com/p/tapirwiki
1 stars 0 forks source link

Accidentally deleting a page forever far too easy #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.accidentally click on delete while on a page

What is the expected output? What do you see instead?
Would expect some kind of warning, or a soft delete for example by changing
the document type to "deletedPage", or both.
Instead your page in which you might have put a lot of work is
instantaneously erased forever.  
What version of the product are you using? On what operating system?

Please provide any additional information below.
Especially dangerous when using a touch-pad instead of a mouse. 

Original issue reported on code.google.com by jeroen....@gmail.com on 26 Feb 2010 at 1:57

GoogleCodeExporter commented 9 years ago
Found out now that you can actually recover deleted documents id and last 
revision
number both of which you can find out by querying the database with
dbname/_all_docs_by_seq. You can then recover by issuing a PUT request with the 
same
revision that was passed to the DELETE request. When this happens the previously
deleted document is assigned a new revision and is no longer considered 
deleted. See:
http://issues.apache.org/jira/browse/COUCHDB-292

Original comment by jeroen....@gmail.com on 27 Feb 2010 at 6:09

GoogleCodeExporter commented 9 years ago
Happy that the document is not deleted from the DB. However, agree that it is a 
little 
too easy to click the delete button accidentally. I will add a "Are you sure?" 
prompt 
before doing the delete.

Original comment by Joshua.e.Knight on 1 Mar 2010 at 7:23

GoogleCodeExporter commented 9 years ago
Fixed in the attached. Please verify. If OK I will release this version...

Original comment by Joshua.e.Knight on 1 Mar 2010 at 8:08

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by Joshua.e.Knight on 1 Mar 2010 at 8:09