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
F13169470: D20366.diff
Tue, May 7, 8:26 AM
Unknown Object (File)
Sun, May 5, 8:57 PM
Unknown Object (File)
Fri, May 3, 8:13 AM
Unknown Object (File)
Fri, Apr 26, 6:35 PM
Unknown Object (File)
Thu, Apr 25, 2:13 AM
Unknown Object (File)
Apr 4 2024, 1:45 PM
Unknown Object (File)
Mar 31 2024, 10:15 PM
Unknown Object (File)
Mar 29 2024, 4:31 PM
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