Skip to content

Tombstone events instead of deleting them #238

Description

@osteele

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew and enhanced functional

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions