Page MenuHomePhabricator

[lib] Update pending thread type based on selected members
ClosedPublic

Authored by tomek on Sep 30 2024, 5:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 2:19 PM
Unknown Object (File)
Mon, Nov 25, 12:20 PM
Unknown Object (File)
Sat, Nov 23, 7:26 AM
Unknown Object (File)
Sun, Nov 10, 4:18 PM
Unknown Object (File)
Fri, Nov 8, 3:01 AM
Unknown Object (File)
Fri, Nov 8, 3:01 AM
Unknown Object (File)
Fri, Nov 8, 3:01 AM
Unknown Object (File)
Fri, Nov 1, 4:22 PM
Subscribers

Details

Summary

Every time a list of selected users change check whether they support thick threads and update the type accordingly. Checking the support is an asynchronous operation which causes a lot of changes in other places.

https://linear.app/comm/issue/ENG-9393/update-pending-thread-type-based-on-selected-members

Depends on D13489

Test Plan

Modify useUserSupportThickThread so that it returns false for some users. Check if the thread type is determined correctly on native and web.

Tested following scenarios

  1. Searching for a user on native with useUserSupportThickThread modified to return false for some users
  2. Searching for a user on native without modifications to useUserSupportThickThread
  3. Searching for a user on web with useUserSupportThickThread modified to return false for some users
  4. Searching for a user on web without modifications to useUserSupportThickThread
  5. Composing a thread on native with useUserSupportThickThread modified to return false for some users
  6. Composing a thread on native without modifications to useUserSupportThickThread
  7. Composing a thread on web with useUserSupportThickThread modified to return false for some users
  8. Composing a thread on web without modifications to useUserSupportThickThread

For each of these verified that the thread type is displayed correctly and that sending a message results in the creation of the correct thread type.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Sep 30 2024, 5:37 AM

Can you update the test plan to cover all of these scenarios?

  1. Searching for a user on native with useUserSupportThickThread modified to return false for some users
  2. Searching for a user on native without modifications to useUserSupportThickThread
  3. Searching for a user on web with useUserSupportThickThread modified to return false for some users
  4. Searching for a user on web without modifications to useUserSupportThickThread
  5. Composing a thread on native with useUserSupportThickThread modified to return false for some users
  6. Composing a thread on native without modifications to useUserSupportThickThread
  7. Composing a thread on web with useUserSupportThickThread modified to return false for some users
  8. Composing a thread on web without modifications to useUserSupportThickThread
This revision is now accepted and ready to land.Sep 30 2024, 6:01 AM

Can you update the test plan to cover all of these scenarios?

  1. Searching for a user on native with useUserSupportThickThread modified to return false for some users
  2. Searching for a user on native without modifications to useUserSupportThickThread
  3. Searching for a user on web with useUserSupportThickThread modified to return false for some users
  4. Searching for a user on web without modifications to useUserSupportThickThread
  5. Composing a thread on native with useUserSupportThickThread modified to return false for some users
  6. Composing a thread on native without modifications to useUserSupportThickThread
  7. Composing a thread on web with useUserSupportThickThread modified to return false for some users
  8. Composing a thread on web without modifications to useUserSupportThickThread

Sure!