-
Notifications
You must be signed in to change notification settings - Fork 56
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
feat(crud): support configured max page size #3224
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
packages/java/endpoint/src/test/java/com/vaadin/hilla/crud/CrudRepositoryServiceJpaTest.java
Outdated
Show resolved
Hide resolved
packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/ListRepositoryService.java
Outdated
Show resolved
Hide resolved
|
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.