Page MenuHomePhabricator

Fix rendering of offset-paged query panels including "Notifications"
ClosedPublic

Authored by epriestley on Apr 2 2019, 12:45 PM.
Tags
None
Referenced Files
F22738971: D20366.id48591.diff
Sun, Oct 4, 12:04 PM
F22693027: D20366.diff
Fri, Oct 2, 2:31 PM
F22658883: D20366.diff
Thu, Oct 1, 7:15 AM
Unknown Object (File)
Aug 28 2026, 10:26 AM
Unknown Object (File)
Jul 1 2026, 2:30 PM
Unknown Object (File)
Jun 25 2026, 12:44 PM
Unknown Object (File)
Jun 20 2026, 10:36 PM
Unknown Object (File)
May 30 2026, 2:26 AM
Subscribers
None

Details

Summary

See https://discourse.phabricator-community.org/t/call-to-undefined-method-phuipagerview-gethasmoreresults-in-2019-week-13/2586/.

A small number of queries (including "Notifications" and (global) "Search") use offset-based pagers which have a slightly different API PHUIPagerView instead of AphrontCursorPagerView. This leads to a fatal in the new code for the "View All Results" buttons.

To fix this, just do an instanceof test. Some day we can unify the pagers.

Test Plan

Added a notifications panel, rendered it, saw it work instead of fataling on "getHasMoreResults()". Also rendered some normal panels.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable