hholzgra / maposmatic

Mirror of maposmatic repository at savannah.nongnu.org
GNU Affero General Public License v3.0
72 stars 13 forks source link

Add retention options for upload files #116

Closed hholzgra closed 1 year ago

hholzgra commented 1 year ago

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 commented 1 year ago

See also issue #90

hholzgra commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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:

hholzgra commented 1 year ago

Closing as API work now has separate ticket #118