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
F3486119: D10981.diff
Wed, Dec 18, 3:15 AM
Unknown Object (File)
Tue, Dec 17, 12:55 AM
Unknown Object (File)
Tue, Dec 17, 12:55 AM
Unknown Object (File)
Tue, Dec 17, 12:55 AM
Unknown Object (File)
Tue, Dec 17, 12:55 AM
Unknown Object (File)
Tue, Dec 17, 12:55 AM
Unknown Object (File)
Tue, Dec 17, 12:55 AM
Unknown Object (File)
Tue, Dec 17, 12:55 AM
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
No Lint Coverage
Unit
No Test Coverage

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.