Add impossible seen dates maintenance endpoint

- Backend: fixImpossibleSeenDates scan/fix in maintenanceService
  detects movies with EntrySeen date before release_date, adds
  them to a "Movies with impossible seen date" collection
- Frontend: ImpossibleSeenDatesSection in SettingsPage with
  Scan and Fix buttons
- Updated API docs (Clients + Reference), cleaned up removed
  migrateSeenWith references
This commit is contained in:
X4Lo committed 2026-06-25 21:38:31 +01:00
1 parent 3df2e2ce3e
commit d984210dd9
8 files changed
+294 -124

No files matched your search

+9 -1
View File
@@ -39,7 +39,6 @@ All endpoints are prefixed with `/api/v1`. See [[Backend]] for server setup.
| `POST` | `/watch-buddies` | Create watch buddy |
| `PUT` | `/watch-buddies/:id` | Update watch buddy |
| `DELETE` | `/watch-buddies/:id` | Delete watch buddy |
| `POST` | `/watch-buddies/migrate-seen-with` | Migrate `seen_with` string field to watch buddy references |
---
@@ -275,6 +274,15 @@ See [[Settings Page#Cleanup]] for the UI.
**Response:** `{ completed: number, watching: number, planToWatch: number }`
### Impossible Seen Dates
| Method | Path | Description |
|---|---|---|
| `GET` | `/maintenance/impossible-seen-dates` | Scan for movies watched before their release date |
| `POST` | `/maintenance/impossible-seen-dates` | Fix — add to "Movies with impossible seen date" collection |
**Response:** Scan → `{ count: number }`, Fix → `{ count: number, added: number }`
---
## Import