deis / controller

Deis Workflow Controller (API)
https://deis.com
MIT License
41 stars 53 forks source link

Soft delete resources instead of hard #1073

Open helgi opened 8 years ago

helgi commented 8 years ago

When deleting apps / resources in DB we actually do a hard delete but what if we did soft delete? It is easier to trace things through time

http://stefan.haflidason.com/safer-soft-deletion-in-django/ http://www.akshayshah.org/post/django-soft-deletion/

This can be used instead to keep audit log without having any resource around https://github.com/jjkester/django-auditlog (https://github.com/shtalinberg/django-actions-logger is a fork of that) or https://github.com/kajic/django-model-changes, https://pypi.python.org/pypi/django-reversion/2.0.6

Audit log is only useful up to a point if there is no data around to introspect

Cryptophobia commented 6 years ago

This issue was moved to teamhephy/controller#53