mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Rows-per-page was capped at 100 in three independent places: @Max on PaginationQueryDto, the same @Max repeated on ListWagonsQueryDto (which does not extend the base), and MAX_PAGE_SIZE in pagination.util. The first two reject with a 400, the third silently truncates, so a larger page size had to be lifted in all three or the endpoints that opted in would refuse it -- train schedules, routes, locomotives, wagons, audit, rule engine, built trains, batch board and the rest. No service overrides maxPageSize, so the util constant is the effective cap everywhere it is reached. Adds a spec pinning the three together: 500 validates, 501 rejects, and the util returns take: 500 rather than truncating. A fourth copy of the number lives in the backoffice data-table footer and is noted there.