Description
Currently, catalogs are outright deleted after a set time. This ticket proposes a change to this behavior to introduce a 'soft delete' mechanism and a re-activation window, improving data retention and user experience.
Soft Delete Implementation:
Catalog Re-activation:
Permanent Deletion:
-[ ] Catalogs that have been marked active: false and whose updatedAt timestamp is older than 30 days must be permanently deleted from the system. This deletion should be handled by a scheduled job or similar mechanism.
Description
Currently, catalogs are outright deleted after a set time. This ticket proposes a change to this behavior to introduce a 'soft delete' mechanism and a re-activation window, improving data retention and user experience.
Soft Delete Implementation:
activeto the Catalog schema, defaulting totruefor new catalogs.activefield must be updated tofalse.updatedAttimestamp of the catalog must be updated whenever theactivefield is changed tofalse.Catalog Re-activation:
active: false) is accessed/visited by a user within 30 days of itsupdatedAttimestamp (i.e., 30 days since it was marked inactive), theactivefield must be reset totrue.updatedAttimestamp of the catalog must be updated whenever theactivefield is changed back totrue.Permanent Deletion:
-[ ] Catalogs that have been marked
active: falseand whoseupdatedAttimestamp is older than 30 days must be permanently deleted from the system. This deletion should be handled by a scheduled job or similar mechanism.