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)
Fri, Jan 3, 8:21 PM
Unknown Object (File)
Sun, Dec 22, 10:40 AM
Unknown Object (File)
Thu, Dec 12, 4:11 PM
Unknown Object (File)
Wed, Dec 11, 6:05 AM
Unknown Object (File)
Sat, Dec 7, 1:41 PM
Unknown Object (File)
Dec 6 2024, 6:58 AM
Unknown Object (File)
Dec 3 2024, 1:04 PM
Unknown Object (File)
Dec 1 2024, 12:44 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