Page MenuHomePhabricator

[web] Merge store and server search results
ClosedPublic

Authored by tomek on Jun 14 2022, 12:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 7:59 AM
Unknown Object (File)
Sat, Oct 26, 7:39 AM
Unknown Object (File)
Oct 14 2024, 12:46 AM
Unknown Object (File)
Oct 14 2024, 12:46 AM
Unknown Object (File)
Oct 14 2024, 12:46 AM
Unknown Object (File)
Oct 14 2024, 12:45 AM
Unknown Object (File)
Oct 14 2024, 12:42 AM
Unknown Object (File)
Oct 9 2024, 2:25 PM

Details

Summary

Merge the results from both sources and store them in a memo.

Depends on D4268

Test Plan

Render the component and check if merged result contains only the users matched by the search text.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul added inline comments.
web/settings/relationship/add-users-list.react.js
44

Could maybe use isSet defined in lib/shared/core.js? It's essentially an alias for blah !== null && blah !=undefined

54

And could then change this to isSet(searchTextPresent)

This revision is now accepted and ready to land.Jun 17 2022, 1:30 PM
web/settings/relationship/add-users-list.react.js
44

This won't work because searchText is always non-null. What we should do instead is to check if it's empty.

54

The intention was for this memo to depend on a boolean flag instead of the text, so that changing the text wouldn't cause recomputation.

This revision was automatically updated to reflect the committed changes.