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`
|
||||
@@ -224,4 +216,4 @@ Fix Task 16 first. Then verify that responsive layout tests check for viewport-s
|
||||
2. **Download Queue API** — `DownloadRequest` model validation fails on the test payload. `GET /queue/status` response field names may differ from test expectations. `POST /queue/resume` endpoint is missing. `Start Queue` returns 400 on empty queue.
|
||||
3. **WebSocket API** — Inline `Evaluate` with asyncio is unreliable; needs a proper Python keyword library.
|
||||
4. **UI Login Page** — HTML element IDs (`password`, `login-button`) do not match Robot test selectors (`password-input`, `login-submit-btn`).
|
||||
5. **All Other UI Tests** — Fail because they cannot log in due to the ID mismatch above.
|
||||
5. **All Other UI Tests** — Fail because they cannot log in due to the ID mismatch above.
|
||||
@@ -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