manyfold icon indicating copy to clipboard operation
manyfold copied to clipboard

Add a results per page option

Open sochartgit opened this issue 5 months ago • 5 comments

On the error page, please add a "Results per page" option cause Resolving or hiding 50 pages of errors is not funny at all. Thanks

sochartgit avatar Jul 24 '25 22:07 sochartgit

Good call; you can hide entire types of problem if you don't want to deal with them (in user settings) but yes, a per page option would be good.

Floppy avatar Jul 24 '25 22:07 Floppy

I've found a workaround by changing the .per(XXX) option in line 30 into problems_controller.rb

@problems = query.page(page).per(50).order([:category, :problematic_type]).includes(problematic: [:library, :model])

sochartgit avatar Jul 24 '25 23:07 sochartgit

Yep, that's exactly the place, it needs to be a parameter rather than hardcoded. Not sure why I didn't do that by default tbh.

Floppy avatar Jul 25 '25 07:07 Floppy

I'm doing a release shortly and managed to squeeze in a simple parameter for this if you don't mind URL-hacking it until I can get the UI in. Just add ?per_page=250 (or whatever) to the end of the problem list URL.

Floppy avatar Jul 25 '25 07:07 Floppy

Fantastic, thanks a lot for very quick support.

sochartgit avatar Jul 25 '25 13:07 sochartgit