ENG-4132. Added RPC to find user ID by either username or wallet address.
The API is the same as for GetOutboundKeys RPC, which will then be refactored to instead accept user ID.
Details
Created a test user, used BloomRPC to call the RPC with the username. It returned the user ID - confirmed with DDB. A unit test is added in the next diff.
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
shared/protos/identity_authenticated.proto | ||
---|---|---|
28 ↗ | (On Diff #33107) | is there a reason why we're using the verb Find instead of Get here? I am fine with it, but want to understand the distinction |
29 ↗ | (On Diff #33107) | do we need a line break here? seems like it will be under 80 characters on one line |
73–76 ↗ | (On Diff #33107) | do you think we should factor this out to its own message type? we use it in a bunch of places and it's a little inconvenient to have multiple Identifier types in our Rust code when they're all identical. Also, if we want to introduce a new identifier in the future, it'll be easier to do so if we only have one Identifier message type |
shared/protos/identity_authenticated.proto | ||
---|---|---|
28 ↗ | (On Diff #33107) | Initially, this RPC was supposed to check if a username exists, so no user found is an expected result. |
29 ↗ | (On Diff #33107) | yeah right |
73–76 ↗ | (On Diff #33107) | No. We want userID as an identifier for all other places, and this RPC should be the only one which accepts usernames, just to retrieve user ID: username -> FindUserID RPC -> userID -> all other RPCs This is what we've decided during one of the multi-keyserver scoping meetings and this is what ENG-5659 is about. |