Page MenuHomePhabricator

Fix an error when users receive notifications about objects they can no longer see
ClosedPublic

Authored by epriestley on Mar 11 2021, 6:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 7, 7:22 AM
Unknown Object (File)
Sun, May 5, 1:18 PM
Unknown Object (File)
Sat, May 4, 6:17 PM
Unknown Object (File)
Fri, May 3, 4:26 AM
Unknown Object (File)
Sat, Apr 27, 10:38 AM
Unknown Object (File)
Thu, Apr 25, 1:00 AM
Unknown Object (File)
Sat, Apr 20, 5:38 PM
Unknown Object (File)
Tue, Apr 16, 1:55 PM
Subscribers
None

Details

Summary

Ref T13623. The change in D21577 could lead to a case where we try to access stories the user can't see.

Move the story-loading piece to "willFilterPage()" to make our way thorugh this.

Test Plan
  • Made FeedStory return nothing to simulate invisible notifications, loaded page.
    • Before: index access fatal.
    • After: clean "no notifications".
  • Loaded notifications normally, saw normal notifications.

Diff Detail

Repository
rP Phabricator
Branch
notif1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25236
Build 34829: Run Core Tests
Build 34828: arc lint + arc unit