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
F3248318: D10981.id37616.diff
Fri, Nov 15, 9:20 AM
Unknown Object (File)
Tue, Nov 12, 10:55 PM
Unknown Object (File)
Tue, Nov 12, 10:55 PM
Unknown Object (File)
Tue, Nov 12, 10:55 PM
Unknown Object (File)
Tue, Nov 12, 10:55 PM
Unknown Object (File)
Tue, Nov 12, 10:55 PM
Unknown Object (File)
Tue, Nov 12, 10:55 PM
Unknown Object (File)
Tue, Nov 12, 10:55 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.