Tombstone deployment configuration instead of deleting #14

Closed
opened 2022-12-06 06:33:01 +05:30 by realaravinth · 1 comment
Owner

Retaining logs (deployment events) for a while is useful, deleting deployment record from DB will delete logs, since they are linked.

Retaining logs (deployment events) for a while is useful, deleting deployment record from DB will delete logs, since they are linked.
realaravinth self-assigned this 2022-12-06 06:33:01 +05:30
realaravinth added spent time 2022-12-06 06:33:11 +05:30
1 hour
Author
Owner

Summary

  1. Add tombstone with deleted attribute on the deployment configuration table
  2. Filter out tombstones wherever necessary in DB methods
  3. deployment deletion updates record to set deleted = true, essentially tombstoning

NOTE: event_* methods don't filter out tombstones

Diff: ee6af46ccf...538bc41113

## Summary 1. Add tombstone with `deleted` attribute on the deployment configuration table 2. Filter out tombstones wherever necessary in DB methods 3. deployment deletion updates record to set `deleted = true`, essentially tombstoning NOTE: event_* methods don't filter out tombstones Diff: https://git.batsense.net/LibrePages/librepages/compare/ee6af46ccfed9cce4781b99ef8138673106ad0c5...538bc411138a4e4b3f4ae2b9478d15a9ae2b8e2c
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 1 hour
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: LibrePages/librepages#14
No description provided.