feat(backend): fix credit duplicates, support multi-role TV credits, fix collection upload
- Fix credit dedup key to people_id + cast_type (scoped to entry_id) - Detect aggregate_credits format via Array.isArray(c.roles) instead of is_tvseries flag - Join multiple roles/jobs with "; " instead of taking only the first - Add episode_count field to Credit model from total_episode_count - Increase character and job columns to VARCHAR(500) - Deselect existing collection posters/backdrops before inserting new upload - Updated docs-vault - Updated some agents files
This commit is contained in:
1 parent
260282a0e2
commit
ce01dc34fa
14 files changed
+293
-45
No files matched your search
@@ -27,3 +27,21 @@ All project milestones. See also `changes.md` in project root.
|
||||
- Fixed EpisodePage using `seasonId` (DB id) instead of `season.season_number` for display
|
||||
- Added cleanup section to [[Settings Page]] for orphan files/media records
|
||||
- Created [[API Clients|maintenance.ts]] API client
|
||||
|
||||
---
|
||||
|
||||
## Milestone 001.1
|
||||
|
||||
### Backend
|
||||
|
||||
- Fixed [[People|credit]] duplicate bug: changed dedup key from `people_id + cast_type + tmdb_credit_id` to `people_id + cast_type` — TV series credits no longer re-inserted on every refresh
|
||||
- Fixed TV series character/job extraction: detects `aggregate_credits` format via `Array.isArray(c.roles)` instead of `is_tvseries` flag; joins all roles/jobs with `"; "`
|
||||
- Added `episode_count` field to [[Models#Credit|Credit]] model (from TMDB `total_episode_count`)
|
||||
- Increased `character` and `job` columns from `VARCHAR(100)` to `VARCHAR(500)` for multiple roles
|
||||
- Fixed [[Collections|collection]] media upload: deselects existing posters/backdrops before inserting new custom upload
|
||||
|
||||
### Frontend
|
||||
|
||||
- Created [[Components#Dialogs|MarkSeasonWatchedDialog]] — dedicated dialog replacing the old two-step EpisodeSeenEditDialog + ConfirmDialog flow
|
||||
- Added **Scatter Mode**: distributes episodes across a date range with even spread and live preview
|
||||
- "Mark Season Watched" button on [[Pages#SeasonPage|SeasonPage]] is now always visible
|
||||
Reference in new issue
Block a user