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)
Thu, Sep 12, 10:01 PM
Unknown Object (File)
Mon, Sep 9, 8:57 PM
Unknown Object (File)
Mon, Sep 9, 7:04 PM
Unknown Object (File)
Mon, Sep 9, 7:04 PM
Unknown Object (File)
Mon, Sep 9, 7:04 PM
Unknown Object (File)
Mon, Sep 9, 7:04 PM
Unknown Object (File)
Mon, Sep 9, 7:01 PM
Unknown Object (File)
Mon, Sep 9, 10:48 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
No Lint Coverage
Unit
No Test Coverage

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.