Skip to content

Define a retention date on resources #2256

@lunika

Description

@lunika

Feature Request

Is your feature request related to a problem or unsupported use case? Please describe.

When a new resource is created and this one is an uploaded resource, we would like to define on it a retention date. Once this retention date is past, we should hard delete this resource. The record in database and the related physical resource.

Describe the solution you'd like

On each dashboard, a new widget should be created dedicated to set a retention date.
We would also like to define a default period on a playlist. If a default retention period is defined on a playlist, then we should use this period to define the retention when a new resource is created.
If there is no retention period defined on a playlist, then a new resource should not have a retention date defined.

To delete a resource, a management command should be created. This management command will check every resources having a retention date in the past and then delete this resources.

To delete a resource, we have to delete the record in database and also delete all the files.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions