Add name and data_dir to ConfigUpdate model
Allow updating app name and data directory via config endpoint. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -1,11 +1,3 @@
|
||||
### Task 1: Fix `Get Series Episodes` API Test
|
||||
**Test Result:** FAIL — `ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))`
|
||||
**File:** `tests/robot/api/anime.robot`
|
||||
**Instructions:**
|
||||
The test adds a series and then calls `Get Series Details` to retrieve episodes. During the run, the connection was reset by the server. Investigate whether the server crashes when fetching episodes for a newly added series. Check `src/server/api/anime.py` and `src/server/services/anime_service.py` for the episode retrieval endpoint. Ensure the endpoint handles series with empty episode lists gracefully and does not crash. Add error handling or fix the underlying crash.
|
||||
|
||||
---
|
||||
|
||||
### Task 2: Fix `Update Config` API Test
|
||||
**Test Result:** FAIL — Expected status: 200, got 422
|
||||
**File:** `tests/robot/api/config.robot`
|
||||
|
||||
@@ -242,6 +242,8 @@ class AppConfig(BaseModel):
|
||||
|
||||
|
||||
class ConfigUpdate(BaseModel):
|
||||
name: Optional[str] = None
|
||||
data_dir: Optional[str] = None
|
||||
scheduler: Optional[SchedulerConfig] = None
|
||||
logging: Optional[LoggingConfig] = None
|
||||
backup: Optional[BackupConfig] = None
|
||||
|
||||
Reference in New Issue
Block a user