Skip to content
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

[web] Changing of filters and the reset of the page in the Reports table does not adjust the page= GET parameter, which can lead to out of bounds visualisation when used as a permalink or through the "Back to Reports" button #4206

Open
whisperity opened this issue Apr 2, 2024 · 0 comments
Labels
bug 🐛 web 🌍 Related to the web app

Comments

@whisperity
Copy link
Member

Describe the bug
The user's choice on which page they are during the pagination of the reports is kept even when the filters change and the selected page is now out of bounds.

CodeChecker version
6.23 release

To Reproduce
Steps to reproduce the behaviour:

  1. Store many reports in a way that you can filter for a "large" and a "small" set.
    • Preferably, the "large" set should be larger than the page size and the small set should be smaller than the page size. In this concrete example, I'm using 50 as the page size, the large set is 917 elements, and the small set is 28. (So a 25 page size would not suffice!)
  2. Filter for the "large" set and go some pages forward in the report list,
  3. Now change the filters such that the "small" set is filtered.
  4. Observe that the filter now shows the small set properly (e.g., in my example, 50 rows per page, showing the "1-28 of 28" results), but the URL still says &page=4.
    • (I can't directly link this step, because that way, the observation would differ!)
  5. The report page works and shows the newly filtered data, open a report at random.
  6. Use the "Back to Reports" button such that you return to the report list.
  7. Now the report list says No data available, Rows per page: 50, 1-0 of 28 (this is strange!), because we are still on &page=4, as seen in the URL.
  8. The user has to click the < button 3 times (because we are on page 4, but there is no indication of this fact anywhere except if mined from the URL!) to get back to the "normal" result page.

Expected behaviour
The filter reapplies after detecting that it's on the wrong page OR when fixing the filtered list in step 3, the &page= in the GET params is set to 1 or something.

Desktop (please complete the following information)

  • OS: Windows 10 22H2
  • Browser: Firefox
  • Version: 118.0.1
@whisperity whisperity added bug 🐛 web 🌍 Related to the web app labels Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 web 🌍 Related to the web app
Projects
None yet
Development

No branches or pull requests

1 participant