Pageable request could return same subscription in response on different pages
Closed this issue · 0 comments
Dankoy commented
Example
- GET http://subscriptions-holder/api/v1/tag_subscriptions?active=true&size=3&page=0
- Returned TagSubscriptions with id [16,9,14]
- Send new data in producer. Producer updated records in db (lastPermalink)
- GET http://subscriptions-holder/api/v1/tag_subscriptions?active=true&size=3&page=1
- Returned TagSubscriptions with id [18,10,9]
- Repeat 3)
- GET http://subscriptions-holder/api/v1/tag_subscriptions?active=true&size=3&page=2
- Returned TagSubscriptions with id [1]
TagSubscription with id [20] was ignored and never processed.
Probable solution - add sort to request (&sort=id,asc)