From 262fbb04d0315eefddcc7d818d1256ae785184e4 Mon Sep 17 00:00:00 2001 From: Prashant Vasudevan <71649489+vprashrex@users.noreply.github.com> Date: Mon, 21 Sep 2026 13:16:40 +0530 Subject: [PATCH] feat(Assessment): Dataset Update limit for preview rows to 2000 in get_dataset endpoint --- backend/app/api/docs/assessment/get_dataset.md | 2 +- backend/app/api/routes/assessment/datasets.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/api/docs/assessment/get_dataset.md b/backend/app/api/docs/assessment/get_dataset.md index a359a3d23..b7835a19a 100644 --- a/backend/app/api/docs/assessment/get_dataset.md +++ b/backend/app/api/docs/assessment/get_dataset.md @@ -2,6 +2,6 @@ Get a single assessment dataset by ID. Optionally include a signed URL to download the original uploaded file. -Pass `limit_rows=N` (1-100) to additionally include a lightweight preview +Pass `limit_rows=N` (1-2000) to additionally include a lightweight preview of the dataset's column headers and the first N data rows. When omitted, the underlying file is not fetched and the response stays small. diff --git a/backend/app/api/routes/assessment/datasets.py b/backend/app/api/routes/assessment/datasets.py index 7ac4ea8dc..33dce7c72 100644 --- a/backend/app/api/routes/assessment/datasets.py +++ b/backend/app/api/routes/assessment/datasets.py @@ -118,7 +118,7 @@ def get_dataset( int | None, Query( ge=1, - le=100, + le=2000, description=( "If set, fetch the underlying file and include a preview of the " "first N data rows plus column headers. Skip to avoid the file "