Skip to content
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

Merged
merged 15 commits into from
Jul 5, 2022

Conversation

kocubinski
Copy link
Member

@kocubinski kocubinski commented Jun 27, 2022

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...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

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...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@kocubinski kocubinski requested a review from a team as a code owner June 27, 2022 19:05
@@ -1,3 +1,5 @@
golang_bindings:
Copy link
Member Author

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.

api/cosmos/app/v1alpha1/config.pulsar.go Fixed Show fixed Hide fixed
api/cosmos/app/v1alpha1/config.pulsar.go Fixed Show fixed Hide fixed
api/cosmos/app/v1alpha1/config.pulsar.go Fixed Show fixed Hide fixed
api/cosmos/app/v1alpha1/config.pulsar.go Fixed Show fixed Hide fixed
api/cosmos/app/v1alpha1/config.pulsar.go Fixed Show fixed Hide fixed
api/cosmos/app/v1alpha1/config.pulsar.go Fixed Show fixed Hide fixed
core/appconfig/config.go Fixed Show fixed Hide fixed
//
// golang_bindings:
// interfaceType: implementationType
map<string, string> golang_bindings = 2;
Copy link
Member

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

Copy link
Member Author

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

Comment on lines +51 to +54
string interface_type = 1;

// implementation is the implementing type which will be supplied when an input of type interface is requested
string implementation = 2;
Copy link
Member

Choose a reason for hiding this comment

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

How about simply:

Suggested change
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;

Copy link
Member

Choose a reason for hiding this comment

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

Is that too terse?

Copy link
Member

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

Copy link
Member Author

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

Copy link
Contributor

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.

Copy link
Member

@aaronc aaronc left a comment

Choose a reason for hiding this comment

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

LGTM besides naming

@julienrbrt julienrbrt changed the base branch from main to epic/app-wiring June 29, 2022 13:39
@julienrbrt julienrbrt changed the base branch from epic/app-wiring to main June 29, 2022 15:44
@github-actions github-actions bot removed the C:x/nft label Jul 5, 2022
@kocubinski kocubinski merged commit ec0c809 into main Jul 5, 2022
@kocubinski kocubinski deleted the kocubinski/appconfig_bindings branch July 5, 2022 15:42
@coderabbitai coderabbitai bot mentioned this pull request May 3, 2024
12 tasks
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.

Allow depinject interface types to be resolved using a key
3 participants