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
F18783284: D20366.id48618.diff
Mon, Oct 13, 5:45 AM
F18764464: D20366.id48591.diff
Tue, Oct 7, 6:13 AM
F18762126: D20366.diff
Mon, Oct 6, 5:40 PM
F18757572: D20366.id.diff
Sun, Oct 5, 6:13 PM
F18518627: D20366.diff
Sep 5 2025, 3:28 PM
F18098676: D20366.id48618.diff
Aug 8 2025, 10:13 PM
F17950218: D20366.id.diff
Aug 1 2025, 12:12 AM
F17934056: D20366.id.diff
Jul 30 2025, 9:53 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