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
F15533627: D20366.diff
Wed, Apr 23, 8:49 PM
F15515925: D20366.diff
Fri, Apr 18, 2:37 PM
F15498653: D20366.id48591.diff
Sun, Apr 13, 1:42 PM
F15490781: D20366.id48618.diff
Fri, Apr 11, 8:33 PM
F15488165: D20366.id.diff
Thu, Apr 10, 8:05 PM
F15484213: D20366.diff
Wed, Apr 9, 5:09 PM
F15380773: D20366.diff
Mar 14 2025, 4:26 AM
Unknown Object (File)
Feb 24 2025, 2:34 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
Branch
page1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 22465
Build 30753: Run Core Tests
Build 30752: arc lint + arc unit