Skip to content

Preserve UI history after Sonarr and Radarr cleanup - #30

Merged
combor merged 1 commit into
mainfrom
preserve-download-history
Oct 7, 2026
Merged

combor merged 1 commit into
mainfrom
preserve-download-history

Conversation

@combor

@combor combor commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Sonarr and Radarr cleanup currently removes completed and failed jobs from magnetowid’s UI history. Archive those records in the existing database so they remain visible for 90 days from completion and survive restarts.

Archived records stay out of the SABnzbd API history. The UI retains their original result, marks them Archived, and only offers record removal. Removing an archive cannot delete files, including when a newer download has reused the old folder. Existing records already deleted are not restored.

Validation:

  • make test: formatting, vet, and race tests passed, including persistence, retention, API filtering, and file safety.
  • make integration: Sonarr and Radarr passed import, cleanup, and archive persistence checks across restarts. The synthetic-media fixtures skip free-space checks because their advertised sizes exceed the tiny files they download.

@combor
combor merged commit 510bc07 into main Oct 7, 2026
7 checks passed
@combor
combor deleted the preserve-download-history branch October 7, 2026 08:35
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

Successfully merging this pull request may close these issues.

1 participant