Page MenuHomePhabricator

[native][web][lib] add versionSupported method to IdentityServiceClient
ClosedPublic

Authored by varun on Jun 12 2024, 8:15 AM.
Tags
None
Referenced Files
F2835442: D12405.diff
Sat, Sep 28, 1:52 PM
Unknown Object (File)
Tue, Sep 17, 10:01 AM
Unknown Object (File)
Sun, Sep 15, 5:40 AM
Unknown Object (File)
Mon, Sep 9, 10:33 PM
Unknown Object (File)
Aug 29 2024, 3:16 PM
Unknown Object (File)
Aug 27 2024, 6:26 AM
Unknown Object (File)
Aug 10 2024, 8:21 AM
Unknown Object (File)
Aug 8 2024, 11:24 AM
Subscribers

Details

Summary

Depends on 12404

Initially, we just needed to call versionSupported on native. Now, we want to call it on both web and native. Before that, we should add this method to the IdentityServiceClient so we can call it from lib/actions/user-actions.js (next diff)

Test Plan

tested in next diff by dispatching action on native that calls this method

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

varun requested review of this revision.Jun 12 2024, 8:41 AM
web/components/identity-ping.react.js
19

I think using the term "ping" in this assignment doesn't make much sense

In general I wonder if the term should be used in this file at all

Should we replace this with something like VersionSupported from native? Is that tracked anywhere?

ashoat requested changes to this revision.Jun 12 2024, 9:44 AM
ashoat added inline comments.
web/grpc/identity-service-client-wrapper.js
674

This doesn't seem right... don't you remove .ping in IdentityServiceClient above?

This revision now requires changes to proceed.Jun 12 2024, 9:45 AM
varun added inline comments.
web/components/identity-ping.react.js
19

this change was just to make sure nothing broke when i changed the IdentityServiceClient interface

I remove the entire component in D12408

I introduce an identity version supported check in MinVersionHandler in D12407

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

ping is the RPC name. we use it to check if the client version is supported (identity will send back an error if it's not supported, otherwise sends back Empty)

This revision is now accepted and ready to land.Jun 12 2024, 12:40 PM