Skip to content

[FIX] Cap listing request batches at 1000 - #1764

Open
Jayant-kernel wants to merge 10 commits into
openml:mainfrom
Jayant-kernel:fix/list-request-batch-cap
Open

Jayant-kernel wants to merge 10 commits into
openml:mainfrom
Jayant-kernel:fix/list-request-batch-cap

Conversation

@Jayant-kernel

Copy link
Copy Markdown

Metadata

Details

Small, intentionally narrow starting point for #1757. The shared listing helper now caps each request at 1,000 items while keeping the requested total result count unchanged. The added test covers a 2,500-item result being fetched as 1,000, 1,000, and 500 items.

Opening this as a draft so we can confirm the wider scope and any API-specific cases during the meeting before expanding the change.

Ruff, formatting, and mypy pass. The focused pytest test could not start locally because Windows Application Control blocks SciPy's compiled _sobol extension during test imports; the local virtual environment does not currently have pytest installed.

Signed-off-by: Jayant-kernel <jayantmcom@gmail.com>
@Jayant-kernel
Jayant-kernel marked this pull request as ready for review October 8, 2026 02:03
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.13%. Comparing base (c8e2aaf) to head (93fec99).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1764       +/-   ##
===========================================
+ Coverage   53.40%   81.13%   +27.73%     
===========================================
  Files          63       63               
  Lines        5230     5232        +2     
===========================================
+ Hits         2793     4245     +1452     
+ Misses       2437      987     -1450     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants