mattbrailsford / umbraco-fluidity

A fluent CRUD user interface generator for Umbraco
https://our.umbraco.org/projects/backoffice-extensions/fluidity/
Apache License 2.0
48 stars 40 forks source link

Soft delete, always keep data history #48

Closed mrafea-sa closed 6 years ago

mrafea-sa commented 6 years ago

in some environment , it needed to keep history of data that had been add to the database. So : 1- when a some one try to delete a record , the record is updated with a status (deleted- overridden) , the system does not display this record again. Also when update a record , a new record is added to the table with the new values , the original record is updated with a a status ( overridden) , the system does not display the original record again. i suggest add new DataAnnotations field for SoftDelete.

mattbrailsford commented 6 years ago

This is already implemented

https://umco.github.io/umbraco-fluidity/api/collections/#defining-a-deleted-flag

On Fri, 25 May 2018, 1:06 pm mrafea-sa, notifications@github.com wrote:

in some environment , it needed to keep history of data that had been add to the database. So : 1- when a some one try to delete a record , the record is updated with a status (deleted- overridden) , the system does not display this record again. Also when update a record , a new record is added to the table with the new values , the original record is updated with a a status ( overridden) , the system does not display the original record again. i suggest add new DataAnnotations field for SoftDelete.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/umco/umbraco-fluidity/issues/48, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgLyUVxh5rkhoMFcGHt9gbWht4zAHeEks5t1-XCgaJpZM4UNyhi .

mrafea-sa commented 6 years ago

Thank you very mush for this great package.