Skip to content

clientv1: remove name field from createuser#92

Closed
kalanchan wants to merge 1 commit into
mainfrom
kalan/update-create-user-rpc
Closed

clientv1: remove name field from createuser#92
kalanchan wants to merge 1 commit into
mainfrom
kalan/update-create-user-rpc

Conversation

@kalanchan

Copy link
Copy Markdown
Contributor

related to https://github.com/sourcegraph/sourcegraph/pull/5351

Removes name field from RPC and keeps email as the only required

Test plan

CI

@kalanchan kalanchan requested review from a team and jac May 23, 2025 05:53

@jac jac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When updating protobuf removing fields like this is discouraged.
https://protobuf.dev/programming-guides/proto3/#updating
If you do want to remove something it should be marked as reserved but the field number must be kept to ensure compatibility with clients who might be using different versions of the sdk.

By default all fields in proto3 are optional. As such we can keep the name field and just not supply it from EP.

@kalanchan

Copy link
Copy Markdown
Contributor Author

thanks @jac ! going to close off this PR then

@kalanchan kalanchan closed this May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants