Page MenuHomePhabricator

[protos][identity] Add reserved usernames to UserIdentitiesResponse
ClosedPublic

Authored by bartek on Jul 29 2024, 11:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 6, 10:49 PM
Unknown Object (File)
Sat, Oct 19, 8:23 AM
Unknown Object (File)
Fri, Oct 18, 9:46 PM
Unknown Object (File)
Fri, Oct 18, 9:46 PM
Unknown Object (File)
Fri, Oct 18, 9:46 PM
Unknown Object (File)
Oct 6 2024, 8:28 PM
Unknown Object (File)
Oct 2 2024, 4:28 AM
Unknown Object (File)
Sep 27 2024, 3:15 AM
Subscribers

Details

Summary

First part of ENG-8771 - added a new response field as proposed in this comment.
This change is backwards compatible, regardless if we release identity first or clients first. The new field will simply default to an empty map.

Test Plan

Flow, cargo build. Logic is added in the next diffs

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Jul 29 2024, 12:01 PM
bartek added inline comments.
services/identity/src/grpc_services/authenticated.rs
882

Actual implementation in D12924

web/protobufs/identity-auth-structs.cjs.flow
621

I noticed that everywhere else we use ProtoMap for types being defined as map<string, Whatever> in protos

Haven't reviewed the Rust but the changes seem minimal / safe

shared/protos/identity_auth.proto
323

How about reserved_user_identifiers? I think it's weird to use the same noun ("identities") here when the type is different from identities above

web/protobufs/identity-auth-structs.cjs.flow
621

Good find

This revision is now accepted and ready to land.Jul 30 2024, 10:51 PM
shared/protos/identity_auth.proto
323

Yeah, it's better, thanks!
I'll update the names.

Rename to reserved_user_identifiers