Page MenuHomePhabricator

[native][web] Expose Device List RPCs to JS
ClosedPublic

Authored by bartek on Mar 11 2024, 6:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 7:23 AM
Unknown Object (File)
Apr 7 2024, 10:28 PM
Unknown Object (File)
Apr 3 2024, 2:32 PM
Unknown Object (File)
Apr 2 2024, 3:26 AM
Unknown Object (File)
Apr 1 2024, 11:07 PM
Unknown Object (File)
Mar 26 2024, 3:44 PM
Unknown Object (File)
Mar 22 2024, 7:05 PM
Unknown Object (File)
Mar 21 2024, 9:20 AM
Subscribers

Details

Summary

These RPCs were exposed to JS but not added to the Identity context.

Test Plan

Called them manually on both native and web and verified they're callable as expected.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek edited the test plan for this revision. (Show Details)
bartek published this revision for review.Mar 11 2024, 7:27 AM
bartek added inline comments.
lib/types/identity-service-types.js
135 ↗(On Diff #37981)

This RPC should be available only on native (primary device)

lib/types/identity-service-types.js
135 ↗(On Diff #37981)

Can you add a comment explaining why it's optional, like there is on publishWebPrekeys?

web/grpc/identity-service-client-wrapper.js
476 ↗(On Diff #37981)

Can we undo this change?

kamil requested changes to this revision.Mar 12 2024, 8:53 AM

Looks good, just requesting changes to address my and @ashoat's comments

lib/types/identity-service-types.js
174–177 ↗(On Diff #37981)

I know it's trivial but can we add a validator here and when returning result return this using assertWithValidator?
This will maintain convention we have for IdentityServiceClient to validate each Identity response

This revision now requires changes to proceed.Mar 12 2024, 8:53 AM

@michal is moving the Identity client to worker now so should review this code as well

Added validator, added comment and fixed accidental newlines

This revision is now accepted and ready to land.Mar 14 2024, 6:37 AM