Page MenuHomePhabricator

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

Authored by varun on Wed, Jun 12, 8:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 18, 2:35 PM
Unknown Object (File)
Tue, Jun 18, 1:19 PM
Unknown Object (File)
Tue, Jun 18, 1:19 PM
Unknown Object (File)
Tue, Jun 18, 1:18 PM
Unknown Object (File)
Tue, Jun 18, 1:16 PM
Unknown Object (File)
Tue, Jun 18, 11:12 AM
Unknown Object (File)
Mon, Jun 17, 12:37 PM
Unknown Object (File)
Mon, Jun 17, 12:34 PM
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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

varun requested review of this revision.Wed, Jun 12, 8:41 AM
web/components/identity-ping.react.js
19 ↗(On Diff #41243)

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.Wed, Jun 12, 9:44 AM
ashoat added inline comments.
web/grpc/identity-service-client-wrapper.js
674 ↗(On Diff #41243)

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

This revision now requires changes to proceed.Wed, Jun 12, 9:45 AM
varun added inline comments.
web/components/identity-ping.react.js
19 ↗(On Diff #41243)

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 ↗(On Diff #41243)

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.Wed, Jun 12, 12:40 PM