HEAD and GET counts do not match

HEAD monthly-production

https://api.combocurve.com/v1/monthly-productions?updatedAt[ge]=2023-10-02

HEAD Returns X-Query-Count - 21670

GET monthly-productions

First call
https://api.combocurve.com/v1/monthly-productions?take=2000&updatedAt[ge]=2023-10-02
Returns 2K records and Next and First links .
Next link is https://api.combocurve.com/v1/monthly-productions?take=2000&updatedAt%5Bge%5D=2023-10-02&cursor=NjQ1MTg2OTcwNWRmODkyN2Y2YWUwMjMwfDI%3D

Next page call
https://api.combocurve.com/v1/monthly-productions?take=2000&updatedAt%5Bge%5D=2023-10-02&cursor=NjQ1MTg2OTcwNWRmODkyN2Y2YWUwMjMwfDI%3D

Returns 1896 records and only First link, no Next
GET returns total 3896 records.

Using skip param works as documented.

Hey @ibekker,
Thanks for reporting this we will investigate and get back to you.

Hey @ibekker,

It looks like there was a bug in the cursor pagination sorting method. A PR has been raised to resolve this issue and will likely go out in the next release. Thanks again for bringing this to our attention. In the meantime using skip is a viable workaround as mentioned.

@ibekker, a fix for this issue has been released and I wanted to let you know. You should now be able to use cursor pagination on daily and monthly productions.

Thank you for the quick turnaround.

1 Like