Open
Description
The PublishLog
and having LearningPackage-local Content entries makes it easier for us to do pruning in small cycles, like as a post-publish task.
Proposed Solution
Step 1: As a post-publish async task for any given PublishableEntity
, delete all PublishableEntityVersions
that are older than a certain period (1 week?), but preserve the following:
- The current Draft version
- Any
PublishableEntityVersion
that has ever been published (appears in aPublishLogRecord
)
Rely on cascading deletion behavior to delete Component/ComponentVersion
.
Step 2: After the deletions in Step 1, find any unreferenced Content
entries and delete those.
Metadata
Metadata
Assignees
Labels
No labels