-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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(core/appconfig): add support for golang_bindings in app.yaml #12367
Conversation
x/nft/testutil/app.yaml
Outdated
@@ -1,3 +1,5 @@ | |||
golang_bindings: |
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.
Can remove this from x/nft
if we don't like it, but I wanted to ensure this change was working end to end, and it seems to be.
// | ||
// golang_bindings: | ||
// interfaceType: implementationType | ||
map<string, string> golang_bindings = 2; |
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.
Not sure we consider maps in proto messages kosher yet. We can serialize them deterministically, but I think the assumption is still that we shouldn't use them
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.
Changed to a typed message
…ppconfig_bindings
string interface_type = 1; | ||
|
||
// implementation is the implementing type which will be supplied when an input of type interface is requested | ||
string implementation = 2; |
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.
How about simply:
string interface_type = 1; | |
// implementation is the implementing type which will be supplied when an input of type interface is requested | |
string implementation = 2; | |
string iface = 1; | |
// implementation is the implementing type which will be supplied when an input of type interface is requested | |
string impl = 2; |
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.
Is that too terse?
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.
could also be interface
and impl
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.
@julienrbrt @alexanderbez What do you think about naming? I like shorter names
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.
These aren't super long field names. I personally don't see much value add in the abbreviations.
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.
LGTM besides naming
…ppconfig_bindings
…ppconfig_bindings
…ppconfig_bindings
Description
Closes: #11910
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change