Page MenuHomePhabricator

[lib] Search for users in thread list search
ClosedPublic

Authored by inka on Apr 26 2024, 5:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 4:14 AM
Unknown Object (File)
Tue, Nov 12, 3:32 AM
Unknown Object (File)
Tue, Nov 12, 2:24 AM
Unknown Object (File)
Tue, Nov 12, 1:02 AM
Unknown Object (File)
Mon, Nov 11, 5:36 PM
Unknown Object (File)
Mon, Oct 21, 4:51 AM
Unknown Object (File)
Oct 11 2024, 4:52 AM
Unknown Object (File)
Oct 11 2024, 4:52 AM
Subscribers

Details

Summary

issue: ENG-7315
We want the search in thread list to start querying the identity service for users

Screenshot 2024-04-26 at 12.39.18.png (1×3 px, 364 KB)

Screenshot 2024-04-26 at 12.54.52.png (1×3 px, 369 KB)

(okapi7 is a user registered on my keyserver)

Test Plan

Tested that on web and native thread list now also shows users registered with identity that the user does not know of - that are not even on my keyserver
Tested that threads that match the query are still visible as well
Tested that users that are registered with my keyserver are visible

Diff Detail

Repository
rCOMM Comm
Branch
inka/may2
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Apr 26 2024, 6:01 AM
This revision is now accepted and ready to land.Apr 26 2024, 7:51 PM
lib/shared/thread-utils.js
1567–1568 ↗(On Diff #39534)

Should we rename these to indicate that they are the "legacy" approach?

1603–1605 ↗(On Diff #39534)

I feel like we should be able to avoid copy-pasting the filter logic here.

What if we define a callback eg. setSearchResults (feel free to rethink the naming) that does the filter and then calls setUsersSearchResults?

Then we could use that in searchUsers, as well as using it here.

This revision was automatically updated to reflect the committed changes.