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)
Thu, Dec 19, 10:26 AM
Unknown Object (File)
Thu, Dec 19, 10:26 AM
Unknown Object (File)
Thu, Dec 19, 10:25 AM
Unknown Object (File)
Thu, Dec 12, 7:46 AM
Unknown Object (File)
Sun, Dec 8, 6:56 PM
Unknown Object (File)
Nov 21 2024, 1:37 AM
Unknown Object (File)
Nov 21 2024, 1:37 AM
Unknown Object (File)
Nov 12 2024, 4:17 PM
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
Lint Not Applicable
Unit
Tests Not Applicable

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

Actual implementation in D12924

web/protobufs/identity-auth-structs.cjs.flow
621 ↗(On Diff #42910)

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

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

Good find

This revision is now accepted and ready to land.Jul 30 2024, 10:51 PM
shared/protos/identity_auth.proto
323 ↗(On Diff #42910)

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

Rename to reserved_user_identifiers