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

Add retention options for upload files #116

Closed
hholzgra opened this issue Sep 17, 2023 · 5 comments
Closed

Add retention options for upload files #116

hholzgra opened this issue Sep 17, 2023 · 5 comments

Comments

@hholzgra
Copy link
Owner

Currently uploaded GPX, Umap and GeoJson files are kept "forever" and there is no detention policy regarding these, just a warning on the upload form.

This is meant to allow re-rendering map jobs with attached files at a later date.

Users should have more control over this, at a minimum they should be able to decide whether uploaded files should be kept at all, or be removed right after rending (which would obviously make re-render requests impossible for these jobs)

@hholzgra
Copy link
Owner Author

See also issue #90

@hholzgra
Copy link
Owner Author

Basic "delete after rendering" processing added.

Properly populating the "keep_until" field and removing upload files older than that as part of regular cleanup runs still needs to be implemented

@hholzgra
Copy link
Owner Author

Added "brute force" cleanup code for files beyond their end-of-life date.

For now it will try to re-delete already deleted files again and again, need to add an extra "deleted_already" column to the upload files table model ...

@hholzgra
Copy link
Owner Author

Retention infrastructure is implemented now, web front end users are given a choice whether uploaded files should be kept (with max. lifetime globally configurable), or deleted right after processing the render request.

Still missing:

  • maybe give front end users more control on how long to keep a file
  • add API option to pass "delete-after-use" and/or max. upload file life time

@hholzgra
Copy link
Owner Author

Closing as API work now has separate ticket #118

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

No branches or pull requests

1 participant