Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(crud): support configured max page size #3224

Merged

Conversation

cromoteca
Copy link
Contributor

When using ListRepositoryService and its subclasses, one can pass an arbitrary page size, potentially querying many lines. This is also true in Hilla, where the client side decides.

This PR uses the existing spring.data.rest.pageable.max-page-size property, if defined, and silently caps the maximum page size.

Closes #3203.

Copy link

codecov bot commented Feb 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.91%. Comparing base (789f983) to head (7fe245f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3224   +/-   ##
=======================================
  Coverage   86.91%   86.91%           
=======================================
  Files         118      118           
  Lines        8192     8192           
  Branches     1259     1259           
=======================================
  Hits         7120     7120           
  Misses       1058     1058           
  Partials       14       14           
Flag Coverage Δ
unittests 86.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@cromoteca cromoteca requested a review from taefi February 13, 2025 11:36
taefi
taefi previously approved these changes Feb 13, 2025
@cromoteca cromoteca requested a review from taefi February 13, 2025 16:46
@cromoteca cromoteca merged commit d4be98d into main Feb 14, 2025
15 checks passed
@cromoteca cromoteca deleted the feat/3203/AutoCrud-add-support-for-limiting-the-pageSize branch February 14, 2025 09:46
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.

AutoCrud: add support for limiting the pageSize without deriving/overriding the Hilla services
2 participants