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)
Sun, Dec 1, 10:16 PM
Unknown Object (File)
Sun, Nov 24, 3:40 AM
Unknown Object (File)
Nov 9 2024, 7:59 AM
Unknown Object (File)
Oct 26 2024, 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

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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul added inline comments.
web/settings/relationship/add-users-list.react.js
44 ↗(On Diff #13508)

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

54 ↗(On Diff #13508)

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 ↗(On Diff #13508)

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

54 ↗(On Diff #13508)

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.