davisp commented on issue #2666: soft-deletion for database
URL: https://github.com/apache/couchdb/pull/2666#issuecomment-605109017
 
 
   So, I apparently somehow managed to write an entire comment yesterday and 
then not post it (or I posted it to a random unrelated ticket that I can't 
find...)
   
   I really don't like the `_deleted_dbs/dbs` approach. I'd vote for:
   
   * `GET /_deleted_dbs`
   * `GET /_deleted_dbs/DbName`
   * `POST /_deleted_dbs` with payload:
   
   ```json
   {
     "undelete": {
       "source": "source_database_name",
       "source_timestamp": "2020-03-24T12:00:00",
       "target": "target_database_name"
     }
   }
   ```
   
   And then I also realized that we really need a "actually delete the deleted 
thing" API so one or both of:
   
   * `DELETE /_deleted_dbs/DbName?timestamp=2020-03-24T12:00:00`
   * `POST /_deleted_dbs` with payload:
   
   ```json
   {
     "delete": {
       "source": "source_database_name",
       "source_timestamp": "2020-03-24T12:00:00"
     }
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to