#664 open
Betelgeuse

Pagination and per-record visibility do not play well together

Reported by Betelgeuse | March 6th, 2010 @ 06:09 PM | in Hobo 1.4

The attached screen shot illustrates the problem. When permissions deny viewing most of the items Hobo still creates pagination links which point to empty pages.

Comments and changes to this ticket

  • Matt Jones

    Matt Jones September 14th, 2011 @ 09:51 PM

    • State changed from “new” to “open”
    • Tag set to defect, rapid-pages
    • Milestone set to Hobo 1.4
    • Title changed from “Pagination is shown in index when permissions only allow viewing one object” to “Pagination and per-record visibility do not play well together”
    • Milestone order changed from “0” to “0”

    Pagination and per-record visibility is definitely a problem - note that even when there's more than one record you can still get short pages.

    Not sure what the best resolution for this is - the only way we could reliably determine there's less than a page of visible records available would be to permission-check every record in the DB. Not exactly a scalable solution...

  • Betelgeuse

    Betelgeuse September 14th, 2011 @ 10:05 PM

    Could be done by ajax loading batches until enough is found but that's hacky too. Maybe pagination should be opt in and it should just be documented what's required for permissions for it to be usable.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Attachments

Pages