store deleted data in a separate place (table or file) instead of in-place soft delete #7
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
High Priority
invalid
question
reproduction needed
schema-fix-required
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ClassClock/API#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
See https://brandur.org/soft-deletion for the reasons why.
The main reason i added soft deletion was in case users accidentally deleted something important and missed the timeout window provided by react-admin.
it seems as though that article is based on/written for Postgres databases. Im not sure if
jsonbcolumns exist in MariaDB (what classclock uses).another alternative is to just make a copy of every table and have that be for deleted data, or maybe have a separate instance of the DB?
Should probably reach out to the author to see if they know of any concrete implementations of this strategy in the wild (i.e. other open source projects).
since mariaDB does not have JSON columns (according to https://mariadb.com/resources/blog/json-with-mariadb-10-2/) another option may be best to just export the data for deleted columns into a series of JSON files in a directory in a format that can potentially be re- imported into the admin panel later if needed
https://brandur.org/fragments/deleted-record-insert