Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define a retention date on resources #2256

Open
lunika opened this issue May 22, 2023 · 1 comment
Open

Define a retention date on resources #2256

lunika opened this issue May 22, 2023 · 1 comment
Assignees

Comments

@lunika
Copy link
Member

lunika commented May 22, 2023

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.

@polyhb polyhb self-assigned this Jul 2, 2023
@kernicPanel
Copy link
Member

I think it has been managed in #2308
Can we close this @polyhb @lunika ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants