daybook/tests/views
peter 57ad58ff2d v0.5.1: automatic Trash purge (cron-less background thread)
Trashed artifacts past a ~3-day retention window are now purged automatically.

- storage.purge_expired_trash(): removes trash older than TRASH_RETENTION
  (all users), tolerant of already-gone rows (concurrent-safe).
- spawn_trash_purge(): runs it on a daemon thread (manages/closes its own DB
  connection), triggered by each delete so it's cron-less and off the request
  thread. Inline fallback when AGENTFEED_ASYNC_PURGE is off (tests).
- Wired into both delete paths (API + session). Manual Empty Trash unchanged.
- Tests: purge removes expired-only; delete triggers the purge. 152 passing;
  live delete verified with the thread enabled (204, server healthy).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-07 13:01:12 +01:00
..
__init__.py Add admin-only Settings -> Users page for creating accounts 2026-09-02 12:33:38 +01:00
test_feed_updates.py v0.4.0: live feed updates (auto-insert new posts) 2026-09-04 23:02:07 +01:00
test_settings_api_keys.py Release v0.2.0: multiple named API keys per user 2026-09-04 10:52:43 +01:00
test_settings_users.py Release v0.2.0: multiple named API keys per user 2026-09-04 10:52:43 +01:00
test_sharing.py v0.3.0: rename app Daybook -> AgentFeed 2026-09-04 13:10:28 +01:00
test_trash.py v0.5.1: automatic Trash purge (cron-less background thread) 2026-09-07 13:01:12 +01:00