Repository navigation
DURACOM-416 Created fallback logic when user reaches an out of bound page number - #5049
Conversation
|
We have tested, as we see: works as intended. Deleted all processes from the last page, when deletion finished it navigates back to the previous page. pr_5049_test.mp4 |
|
@Sondissimo following up on this one. I tested it at the end of April and the fallback worked — emptying the last page navigated back to a valid page. It's been carrying the |
|
Hi @Sondissimo. Thanks for this PR. Is it still required after #5485 was merged? I'm trying to understand if they fix separate issues. |
|
Yes, the two PRs fix different issues. This one concerns the processes page, while PR #5485 addressed the search page |
|
@Sondissimo OK, thanks for the clarification. It's failing tests now, but if you can fix those I'll review and get it merged. |
nwoodward
left a comment
There was a problem hiding this comment.
Thanks @Sondissimo. I tested this today, and it works as expected - deleting the processes on the final page moves the user to the penultimate page. Now we just need to improve the code coverage.
|
Successfully created backport PR for |
|
Successfully created backport PR for |
|
Successfully created backport PR for |
…page number (#5049) (#6468) * DURACOM-416 Created fallback logic when user reaches an out of bound page number * [DURACOM-416] tests fix --------- (cherry picked from commit dd495bb) Co-authored-by: Mattia Vianelli <119754561+Sondissimo@users.noreply.github.com> Co-authored-by: Mattia Vianelli <Mattia.Vianelli@4Science.com>
…page number (#5049) (#6467) * DURACOM-416 Created fallback logic when user reaches an out of bound page number * [DURACOM-416] tests fix --------- (cherry picked from commit dd495bb) Co-authored-by: Mattia Vianelli <119754561+Sondissimo@users.noreply.github.com> Co-authored-by: Mattia Vianelli <Mattia.Vianelli@4Science.com>
…page number (#5049) (#6466) * DURACOM-416 Created fallback logic when user reaches an out of bound page number * [DURACOM-416] tests fix --------- (cherry picked from commit dd495bb) Co-authored-by: Mattia Vianelli <119754561+Sondissimo@users.noreply.github.com> Co-authored-by: Mattia Vianelli <Mattia.Vianelli@4Science.com>
Description
Added in the paginator a fallback logic to prevent the case where the user reaches an out of bound page and nothing is shown
Instructions for Reviewers
Created methods that handles the fallback logic to prevent the user reaching an out of bound page
To test, in the processes page, visit the last page of section “Scheduled Processes”.
Then, delete the processes displayed on that page.
It previously remained stuck on an empty “Scheduled Processes” page, now we fallback to the page with the highest number
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.