-
Notifications
You must be signed in to change notification settings - Fork 103
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
feat: add add-to-basket cli command #750
Changes from 2 commits
62591c7
ea63e51
d6b29ff
29cd6ce
410d357
ae414c1
f167710
68573d1
d39d010
5bcc97f
54429e6
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 |
---|---|---|
|
@@ -15,3 +15,9 @@ message BasketCredit { | |
// credit type for this batch. | ||
string amount = 2; | ||
} | ||
|
||
// BasketCredits represents the slice of BasketCredit objects. | ||
message BasketCredits { | ||
// credits is the list of basket credits | ||
repeated BasketCredit credits = 1; | ||
} | ||
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 believe we want changes to proto definitions merged into master and backported to the release branch. We will need to add this addition to master as well, correct? @aaronc @technicallyty @robert-zaremba 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 think we can do either way (unless there is a change in state.proto). Those backports needs to be done manually.
ryanchristo marked this conversation as resolved.
Show resolved
Hide resolved
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
I wonder if there's a way to do this without adding this to the proto file
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.
I second that. Lets don't pollute proto if the only thing we want is to parse helper structure in CLI. And we also don't need proto JSON marshaller for that. The
stdlib
should work.In the
client/basket
package we can just do:so the JSON in the file is an array (without
{ "credits": ...}
)