Log/archive deleted data #84

Merged
Anna Sirota merged 5 commits from log-all-deletions into main 2024-04-19 16:25:53 +02:00
Owner

When an extension or a version is deleted, create a LogEntry for each record linked to that extension or version.
Each LogEntry has action flag DELETION and contains a blob with the last known field values of the records.
These LogEntry can be viewed by admins in /admin/admin/logentry/, same as any other LogEntry created by Django admin, so this should be sufficient for archival purposes.

When an extension is deleted, log entries are created for all objects linked to that extension:

  • extension itself;
  • previews:
    • preview file:
      • file validation;
  • versions:
    • version file:
      • file validation;
  • approval activity;

Screenshots:

Part of #82

When an extension or a version is deleted, create a `LogEntry` for each record linked to that extension or version. Each `LogEntry` has action flag `DELETION` and contains a blob with the last known field values of the records. These `LogEntry` can be viewed by admins in `/admin/admin/logentry/`, same as any other `LogEntry` created by Django admin, so this should be sufficient for archival purposes. When an extension is deleted, log entries are created for all objects linked to that extension: * extension itself; * previews: * preview file: * file validation; * versions: * version file: * file validation; * approval activity; #### Screenshots: ![](https://projects.blender.org/attachments/7acfa665-87a3-4f8b-a76f-c6809f685e79) ![](https://projects.blender.org/attachments/c189ac96-7c9d-4261-8f61-8315bda35263) ![](https://projects.blender.org/attachments/796b4a79-06e0-4773-9388-75792f249053) Part of https://projects.blender.org/infrastructure/extensions-website/issues/82
Anna Sirota added 2 commits 2024-04-19 16:00:32 +02:00
Anna Sirota added 3 commits 2024-04-19 16:07:31 +02:00
Anna Sirota changed title from WIP: Log/archive deleted data to Log/archive deleted data 2024-04-19 16:24:40 +02:00
Anna Sirota merged commit 8124bc62ae into main 2024-04-19 16:25:53 +02:00
Anna Sirota deleted branch log-all-deletions 2024-04-19 16:25:53 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: infrastructure/extensions-website#84
No description provided.