Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tombstone events instead of deleting them #238

Open
osteele opened this issue May 7, 2018 · 0 comments
Open

Tombstone events instead of deleting them #238

osteele opened this issue May 7, 2018 · 0 comments
Labels
enhancement New and enhanced functional
Projects

Comments

@osteele
Copy link
Contributor

osteele commented May 7, 2018

Instead of deleting events, tombstone them. This allows for easier audit and recovery after accidental deletion.

To implement:

  • Add deleted_at = DateTimeField() to the Event(Document) definition.
  • GET /events queries on (untested) deleted_at: None.
  • DELETE /events/{id} sets event.deleted_at to the current timestamp.

The use of a timestamp allows us to garbage collect (truly delete) tombstoned events at a later date, although this issue calls for neither a cookbook recipe nor code to do this.

@osteele osteele added this to Stretch Goals in Roadmap May 10, 2018
@osteele osteele added the enhancement New and enhanced functional label May 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New and enhanced functional
Projects
Roadmap
  
Stretch Goals
Development

No branches or pull requests

1 participant