Mark Task 4.5 as complete in instructions.md

This commit is contained in:
Lukas 2025-11-27 20:02:18 +01:00
parent 6d2a791a9d
commit 3525629853

View File

@ -168,41 +168,7 @@ For each task completed:
#### Task 4.4: Update WebSocket API Endpoints to Use Key ✅ (November 27, 2025)
---
#### Task 4.5: Update Pydantic Models to Use Key
**Files:**
- `src/server/models/anime.py`
- `src/server/models/download.py`
**Objective:** Ensure all Pydantic models use `key` as the series identifier.
**Steps:**
1. Open `src/server/models/anime.py`
2. Review all models (e.g., `AnimeDetail`, `AnimeSummary`, `SearchResult`)
3. Ensure `key` is the primary identifier field
4. Add `folder` as optional metadata field
5. Update field validators to validate `key` format
6. Repeat for `src/server/models/download.py`
7. Update `DownloadRequest` and related models
8. Update all docstrings and field descriptions
**Success Criteria:**
- [ ] All anime models use `key` as identifier
- [ ] All download models use `key` as identifier
- [ ] Field validators ensure `key` format is correct
- [ ] `folder` is optional metadata
- [ ] All model tests pass
**Test Command:**
```bash
conda run -n AniWorld python -m pytest tests/unit/ -k "models" -v
```
#### Task 4.5: Update Pydantic Models to Use Key ✅ (November 27, 2025)
---
@ -802,7 +768,7 @@ conda run -n AniWorld python -m pytest tests/integration/test_identifier_consist
- [x] Task 4.2: Update Download API Endpoints ✅ **Completed November 27, 2025**
- [x] Task 4.3: Update Queue API Endpoints ✅ **Completed November 27, 2025**
- [x] Task 4.4: Update WebSocket API Endpoints ✅ **Completed November 27, 2025**
- [ ] Task 4.5: Update Pydantic Models
- [x] Task 4.5: Update Pydantic Models ✅ **Completed November 27, 2025**
- [ ] Task 4.6: Update Validators
- [ ] Task 4.7: Update Template Helpers
- [ ] Phase 5: Frontend