Closed johnwilliams57-nhs closed 5 months ago
Hi @johnwilliams57-nhs, thanks for raising this and for providing the repro.
Moto 5.0.4/5.0.5 already fixed a few bugs around pagination, but this particularly use case is indeed still broken. I've opened a PR with a fix.
Description
Paging using LastEvaluatedKey and ExclusiveStartKey has stopped working properly in moto 5.0.4 and 5.0.5. It was working fine up till 5.0.3.
This seems similar to this closed issue: https://github.com/getmoto/moto/issues/7531
Code snippet
Requirements.txt
Expected result
The assert in the last line of the test should succeed. i.e. the second page of results should have a single item in.
This was the result in 5.0.3
Actual result
The assert fails as the items returned is an empty list.