Skip to content

Prune unused content #154

Open
Open
@ormsbee

Description

@ormsbee

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 a PublishLogRecord)

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions