Hi all,
I just committed the code I wrote trying to improve pagination. I screwed up a bit with the new pagination.
The problem I encountered is following. If we want to maintain a link to the previous page we have to filter the database table entries with to types of filters: one with lower bound on the id, and the other with the upper bound. As we do so simultaneously with limiting the query output to the maximal page size, we need to change the ordering type depending on the type of the filter. At the moment I am not sure, what it the best way to implement database query with such properties. Could you please take a look on the commit and share your ideas on that?
The current implementation of pagination works correctly but it does not support link to the previous page (first, and next only).
I have been trying to improve pagination for a while, and I now am thinking about starting the parallel work on the implementation of the features we listed before. What do you think about it?
Best regards,
Tatiana