mirror of
https://github.com/langgenius/dify.git
synced 2026-06-26 14:51:13 +08:00
ConsoleDatasetListQuery accepted any integer page/limit, so a negative or zero value passed straight through to DatasetService.get_datasets and on to the DB pagination. The annotation list queries already guard this with Field(ge=1) (both console and service_api); apply the same bound to the console dataset list query for consistency. Add unit tests covering the defaults, a valid page/limit, and rejection of non-positive page and limit. From Claude Code. Signed-off-by: Yufeng He <40085740+he-yufeng@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| rag_pipeline | ||
| data_source.py | ||
| datasets_document.py | ||
| datasets_segments.py | ||
| datasets.py | ||
| error.py | ||
| external.py | ||
| hit_testing_base.py | ||
| hit_testing.py | ||
| metadata.py | ||
| website.py | ||
| wraps.py | ||