Page MenuHomePhabricator

Maniphest Advanced Search exhibits weird paging behavior when non-default grouping and ordering is used
Open, Needs TriagePublic

Description

Maniphest's Advanced Search shows weird and unpredictable paging behavior when searching for tasks and grouping/ordering with non-default values. For the test cases I didn't fill other form fields, however, when testing with a few parameters that would generate a large enough list, the behavior was the same.

Grouping by "None"

  1. When ordered by "Date Updated (Oldest First)" or "Created (Oldest First)", a list of 100 tasks is returned (https://secure.phabricator.com/maniphest/query/RTzppHYbzX1H/).
  2. "Next" button on the first page leads us to a list of 99 (https://secure.phabricator.com/maniphest/query/RTzppHYbzX1H/?after=153) tasks that is exactly the same, minus the last task in the list.
  3. In the second page the "Prev" button (previously unavailable) leads us to a page (https://secure.phabricator.com/maniphest/query/RTzppHYbzX1H/?before=6) of completely different 100 tasks (I assume this is what would be the last page)
  4. From the 3rd page the "Prev" button leads to the same page with 99 tasks and the first one missing.

Grouping by "Project"

https://secure.phabricator.com/maniphest/query/VsJeQOw9VfgQ/

In this version no paging whatsoever is available so only the first projects (in alphabetical order) are visible. Task counts per project vary based on different ordering settings but I cannot see any pattern to that.

In my much simpler installation everything works fine except ordering by "Created (Oldest First)" and "Date Updated (Oldest First)" - then all of the tasks, except one, of the last project on the first page are repeated in the beginning on the next page.

Grouping by "Status"

Something similar as in grouping by "None".

Grouping by "Assigned"

Hard to say but in my own installation with fewer users "Created (Oldest First)" and "Date Updated (Oldest First)" shows similar behavior to grouping by "None," with the next page having the same tasks as the first one

Event Timeline

I think case (1) (and maybe cases (3) and (4)) is resolved at HEAD.

Case (2) -- grouping by Project -- looks like a separate issue.

I've retested everything here and in my installation and it seems that this solves all cases re: grouping, ordering, and paging.

The other issue in the second case about missing paging in "group by project" can only be reproduced here but cannot be reproduced on my installation, maybe it's something specific with this particular instance.