Page MenuHomePhabricator

[protos][identity] Remove primary device info from GetKeyserverKeys
ClosedPublic

Authored by bartek on Mon, Mar 24, 5:54 AM.
Tags
None
Referenced Files
F5081185: D14492.id47569.diff
Sat, Mar 29, 5:09 AM
Unknown Object (File)
Fri, Mar 28, 12:16 PM
Unknown Object (File)
Fri, Mar 28, 5:26 AM
Unknown Object (File)
Thu, Mar 27, 2:32 PM
Unknown Object (File)
Thu, Mar 27, 1:47 PM
Unknown Object (File)
Thu, Mar 27, 9:34 AM
Unknown Object (File)
Thu, Mar 27, 1:50 AM
Unknown Object (File)
Wed, Mar 26, 8:16 PM
Subscribers

Details

Summary

Address ENG-10247.
We can remove this field.
Although this is backwards compatible since this field wasn't used anywhere, I marked the field as 'reserved' to avoid reusing its number. Doing so would cause parsing errors on old clients

Test Plan

flow, staging identity

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.Mon, Mar 24, 6:32 AM
bartek added inline comments.
shared/protos/identity_auth.proto
153–157 ↗(On Diff #47526)

Protobuf docs: https://protobuf.dev/programming-guides/proto3/#deleting

When you no longer need a field and all references have been deleted from client code, you may delete the field definition from the message. However, you must reserve the deleted field number. If you do not reserve the field number, it is possible for a developer to reuse that number in the future.

You should also reserve the field name to allow JSON and TextFormat encodings of your message to continue to parse.

ashoat added inline comments.
shared/protos/identity_auth.proto
154 ↗(On Diff #47526)

Nit: I'm worried that we'll forget to adjust this to NEXT_CODE_VERSION. Is there a task where you're tracking this?

This revision is now accepted and ready to land.Wed, Mar 26, 7:55 AM
shared/protos/identity_auth.proto
154 ↗(On Diff #47526)

Good call, I made sure I won't forget about it