-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paging should show total number of pages/records #153
Comments
Total count of records was implemented in kbss-cvut/record-manager#49 |
According to @ledsoft, it might be just a bug as it seems like already implemented. |
@LaChope I would in particular look into extracting page count from link headers ( |
Well, that's why I suggested looking into that function:) Have you found out why it returns |
Not yet, but I think it relates to For instance here is the |
@shellyear note, that i modified initial A/C, to implement also paging "history items": |
@shellyear not sure, but it seems that bad "response.headers.link" is not problem for you to implement the ticket, right? If so, I suggest creating a separate ticket (will have low priority now) to handle this issue. @ledsoft, any preference/suggestions on how to solve the issue with incorrect links, I guess alternatives are:
To me, i) seems a better variant, while later, we can implement ii) in cases when the environment variable is defined. |
@blcham @shellyear I see it more as a proxy configuration issue - the link URLs are correct w.r.t. the instance. Of course, generating relative links is also possible according to the RFC. Nevertheless, the fact that the links point to the internal docker URL of the service should not prevent fixing the issue. We are interested in the |
@shellyear
|
It looks good, but what I don't like there is that you never know how many pages are there until you navigate to the last page. |
Now that you have the total count available in the |
@blcham Do we want the ellipsis to be clickable (expandable, so the other page numbers will be shown) like here ? https://codepen.io/dmytroyarmak/full/VagMQq/ |
The backend should return both:
A/C:
The text was updated successfully, but these errors were encountered: