Page MenuHomePhabricator

Fix Maniphest Next button not working when default query has 100+ results.
ClosedPublic

Authored by brechtvl on Nov 27 2013, 8:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Aug 31, 7:28 PM
Unknown Object (File)
Wed, Aug 21, 3:39 PM
Unknown Object (File)
Aug 18 2024, 12:03 PM
Unknown Object (File)
Aug 11 2024, 10:27 AM
Unknown Object (File)
Aug 9 2024, 12:32 PM
Unknown Object (File)
Aug 5 2024, 3:39 PM
Unknown Object (File)
Jul 26 2024, 6:27 AM
Unknown Object (File)
Jul 22 2024, 11:23 PM

Details

Summary

If there is no /query in the URL, the default query would be lost when clicking Next, causing the search form to be shown on the second page. This is not so likely to happen on a standard Phabricator installation because the default query is Assigned, and few people will have 100+ tasks assigned.

Test Plan
  • Go to /maniphest/query/edit/
  • Move Open Tasks to the top
  • Go to /maniphest/
  • Click Next on the bottom right
  • See only tasks that are actually open

Diff Detail

Branch
fix-browse-without-query
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

There may be a better and more compact way to fix this, I'm no PHP developer, but this solved the issue here.

This seems reasonable to me. I might just do something like:

$data = ...
unset($data['before']);
unset($data['after']);
if ($data) {

}

...were I writing it myself, but I don't think that's dramatically cleaner.