Page MenuHomePhabricator

[lib] Update usages of userHasDeviceList to acknowledge accountMissingStatus
Needs ReviewPublic

Authored by inka on Wed, Oct 16, 8:38 AM.
Tags
None
Referenced Files
F2990550: D13729.diff
Wed, Oct 16, 10:35 PM
F2988329: D13729.id45228.diff
Wed, Oct 16, 4:57 PM
F2988289: D13729.id.diff
Wed, Oct 16, 4:57 PM
F2988279: D13729.diff
Wed, Oct 16, 4:54 PM
Subscribers

Details

Reviewers
tomek
kamil
Summary

issue: ENG-9633

Test Plan

Tested that when a user is missing a device list the accountMissingStatus is set. Checked that lastChecked is updated with next requests but missingSince stays the same.

checked that if non-empty a device list is returned by identity, accountMissingStatus is removed.

checked that further requests for the same user are stopped for 20s.

checked that if a user that has a recent lastChecked is picked in search (triggering onSelectUserFromSearch which calls useUsersSupportThickThreads) they are not queried for

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Wed, Oct 16, 9:02 AM

When I first proposed this approach, I had in mind that we would modify useGetAndUpdateDeviceListsForUsers:

We could modify useGetAndUpdateDeviceListsForUsers so that before we query for a user's device lists, we first check lastChecked, and skip the check if it's sufficiently recent.

Can you explain it your approach here a bit more? I'm curious:

  1. How you selected these callsites in particular
  2. Why we're not modifying useGetAndUpdateDeviceListsForUsers