Open savetheclocktower opened 9 months ago
Here's your problem:
https://github.com/pulsar-edit/package-backend/blob/main/src/database.js#L1625-L1627
Terminology-wise, you probably want to distinguish count
and total
from each other. Maybe rename them to result-count
& total-pages
.
@savetheclocktower Just to clarify, did #215 fully address this concern?
No, I believe this still needs a fix on the frontend.
Thanks for clarifying, just wanting to check in
Is this Bug Present in the upstream API Server?
What is the Bug
The
query-total
header is returning the total number of pages, not the total number of results. That's why pagination controls look wrong.How to Replicate the Bug
Look at the
query-total
header on this endpoint:Now count how many results are returned on the same endpoint for the first page alone: