Add clear guidelines for allowed Protobuf changes #9477
Labels
S:needs architecture review
To discuss on the next architecture review call to come to alignment
T:Docs
Changes and features related to documentation.
tooling
dev tooling within the sdk
Milestone
Summary
Add clear guidelines for allowed Protobuf changes
Problem Definition
App developers are not clear which changes are allowed in proto files (adding fields? removing fields? renaming fields?...).
This led for example to the SDK to add
reserved
fields to some proto messages (e.g.Vote
), which turned out to be a PITA for proto clients.Proposal
We should define clear guidelines on allowed Protobuf changes within the SDK context.
We currently have the buf linter as a CI check. However, SDK proto checks should be stricter than only buf. Some items that should be checked:
reserved
keyword).Msg*
s, or else the unknown field rejection will errorMsg
(maybe even in Anys?), because the unknown field rejector might also error on thoseMeeting Notes where this was originally proposed.
Additional notes
The idea to automate this check has also been discussed, but is a nice-to-have in a future step.
For Admin Use
The text was updated successfully, but these errors were encountered: