-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
versioning idea #27
versioning idea #27
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
syntax = "proto3"; | ||
|
||
package self_serve.app; | ||
|
||
message AppSelfServeModeMessage { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not against this and I'm actually proposing the same here: 9df4605. Let's do it! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wrong commit hash? :D |
||
oneof message { | ||
StartCapture start_capture = 1; | ||
RequestState request_state = 2; | ||
} | ||
} | ||
|
||
message StartCapture {} | ||
message RequestState {} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
syntax = "proto3"; | ||
|
||
package self_serve.orb; | ||
|
||
enum OrbMode { | ||
ldulcic marked this conversation as resolved.
Show resolved
Hide resolved
|
||
ORB_MODE_UNSPECIFIED = 0; | ||
LEGACY = 1; | ||
SELF_SERVE = 2; | ||
} | ||
|
||
enum OrbType { | ||
ORB_TYPE_UNSPECIFIED = 0; | ||
PEARL = 1; | ||
DIAMOND = 2; | ||
} | ||
|
||
message OrbMetadata { | ||
ldulcic marked this conversation as resolved.
Show resolved
Hide resolved
|
||
string orb_id = 1; | ||
OrbType orb_type = 2; | ||
OrbMode orb_mode = 3; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JFYI putting
v1
in the way it was before, is because protobuf linters suggest so. We are using buf which actually follows Google and FB best practices. I think we should stay on this path :/Also, I think your concern is that we need to bump the version on every change. That's not the case. This
v1
is only if we introduce breaking changes. We can add and augment the structs and messages here without changing the versions. The same for the enums. We just need to make sure that our clients are able to handleunknown
states.