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)
Sun, Nov 10, 2:03 PM
Unknown Object (File)
Oct 27 2024, 8:20 AM
Unknown Object (File)
Oct 23 2024, 12:18 PM
Unknown Object (File)
Oct 23 2024, 10:32 AM
Unknown Object (File)
Oct 23 2024, 10:20 AM
Unknown Object (File)
Oct 23 2024, 2:20 AM
Unknown Object (File)
Oct 23 2024, 2:15 AM
Unknown Object (File)
Oct 23 2024, 2:14 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
No Lint Coverage
Unit
No Test Coverage

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

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

lib/types/identity-service-types.js
135

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

web/grpc/identity-service-client-wrapper.js
476

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

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