Stores · parts
The parts live in a Micronaut service.
Every one must be read, through its API.
Micronaut 4.7, 130 parts
The problem
The API hands the list out in pages.
- A Micronaut Data Page.
- The stores keep working meanwhile.
What is not changed
The service stays as it is.
- Its controller returns the Page as is.
- No module, no setting.
The trap
Micronaut 4 sends no page count.
- Every page carries totalSize: 130.
- totalPages is absent.
What had to be written
pagination: { kind: micronaut, size: 50 }One line.
- The hub stops once it has read totalSize.
- Three requests for 130 parts.
- A 22-line connector.
While it is read
A part deleted: the list is read again.
- The total moves from 130 to 129.
- All 129 left are there.
What was fixed
Two gaps found, two fixes.
- The total checked on every page (#1796).
- No empty page at the end of a read (#1800).
Try it
The scenario replays locally.
Every step is published with its output.