-
Notifications
You must be signed in to change notification settings - Fork 208
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
Fix pagination for recent failures #2756
Fix pagination for recent failures #2756
Conversation
Since this representation is used for routing (namely for pagination links), it must be consistent with the paths set in routing.
Thanks! |
Just realized: can you add a test to ensure that:
please? |
I was hoping to avoid installing the whole thing for UI testing, to be honest :) But this request is reasonable (after all, this change now is not checked automatically at all), so I'll look into it. |
Actually, thinking about it, I'm not totally sure how this should be approached. To test pagination, we need, well, pages, that is, we need a large enough amount of failed builds. Will it be normal to add some known-bad builds to And by the way, how it is ever expected to be launched locally? As-is, that is, as described in README, it fails saying that |
No need for a GUI test, a "normal" test is more than enough. You can generate failures and then query the page. |
Aha, thanks - this appears to be easier then I thought. Updated the source branch, hopefully this is OK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work, thanks a lot!
0e66b5f
to
1f202ab
Compare
Forgot about formatting, now updated. |
All good, thanks! |
Currently, on the "recent failures" page, pagination links are broken - they lead to something like https://docs.rs/releases/recent_failures/2 instead of https://docs.rs/releases/recent-failures/2. I've attempted to change the corresponding string representation - it seems to be not used otherwise.