remove event retain and retain_indefinitely

Retaining an event only protected its footage during low-disk cleanup, and cleanup undid that a cycle later: it marked every event in the deleted time window as having no clip, including retained events it had kept, so the next pass deleted their footage. The UI hasn't set the flag in many versions and exports are the supported way to keep footage, so this removes the /events/{event_id}/retain endpoints, the favorites filter and the retain_indefinitely column. Storage cleanup is now a single oldest-first pass. Migration 007 now adds the column with raw SQL because add_fields put the field back on the Event model in the process that ran migrations, which broke inserts after 041 dropped it on fresh installs.
This commit is contained in:
Josh Hawkins
2026-11-23 08:16:11 -06:00
parent 8c88754664
commit 3fd261b8bc
20 changed files with 50 additions and 298 deletions
-2
View File
@@ -42,7 +42,6 @@ const GROUPED_EVENT = {
thumbnail: null,
has_clip: true,
has_snapshot: true,
retain_indefinitely: false,
plus_id: null,
model_hash: "abc123",
detector_type: "cpu",
@@ -426,7 +425,6 @@ test.describe("FaceSelectionDialog @high", () => {
thumbnail: null,
has_clip: true,
has_snapshot: true,
retain_indefinitely: false,
plus_id: null,
model_hash: "abc123",
detector_type: "cpu",