Page MenuHomePhabricator

[shared] [identity] Move search result to response and add ids
ClosedPublic

Authored by will on Feb 6 2024, 11:26 PM.
Tags
None
Referenced Files
F2172934: D10981.id37615.diff
Tue, Jul 2, 9:00 PM
F2169562: D10981.diff
Tue, Jul 2, 12:07 PM
F2166675: D10981.id37616.diff
Tue, Jul 2, 4:52 AM
F2166034: D10981.id37612.diff
Tue, Jul 2, 3:09 AM
Unknown Object (File)
Thu, Jun 13, 5:23 AM
Unknown Object (File)
Wed, Jun 12, 8:32 PM
Unknown Object (File)
Fri, Jun 7, 6:55 PM
Unknown Object (File)
May 7 2024, 5:35 PM
Subscribers

Details

Summary

These changes prepare the context handler to resolve search query promises.

This introduces ids to search queries and responses and introduces the search response type which is now composed a successful search result or an error. The ids are used to match queries to responses in the client.

Further explanation: https://linear.app/comm/issue/ENG-5505/implement-contextprovider-pattern-for-web-socket-connection-status#comment-2162a512

Depends on D10980

Test Plan

cargo build and test on local dev

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

will held this revision as a draft.
will retitled this revision from [shared] [identity] Move search result to response and add ids to [shared] [identity] [2/n] Move search result to response and add ids.Feb 6 2024, 11:29 PM
will edited the summary of this revision. (Show Details)
will published this revision for review.Feb 6 2024, 11:31 PM
will retitled this revision from [shared] [identity] [2/n] Move search result to response and add ids to [shared] [identity] Move search result to response and add ids.Feb 8 2024, 10:13 AM

looks good! just one question inline

shared/identity_search_messages/src/messages/search_response.rs
5 ↗(On Diff #36765)

why do we derive all these things for Failure but not for SearchResult? do we actually need to derive these?

This revision is now accepted and ready to land.Feb 13 2024, 11:16 AM
shared/identity_search_messages/src/messages/search_response.rs
5 ↗(On Diff #36765)

You're exactly right. Removing now

rebase with IdentitySearch prefix

This revision was landed with ongoing or failed builds.Feb 26 2024, 11:19 AM
This revision was automatically updated to reflect the committed changes.