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

Query Protobuf Migration #5921

Closed
42 of 43 tasks
aaronc opened this issue Apr 3, 2020 · 5 comments · Fixed by #6590 or #6623
Closed
42 of 43 tasks

Query Protobuf Migration #5921

aaronc opened this issue Apr 3, 2020 · 5 comments · Fixed by #6590 or #6623

Comments

@aaronc
Copy link
Member

aaronc commented Apr 3, 2020

Summary

  1. Following the specification outlined in ADR 021 - Protocol Buffer Query Support #5894, for each module:
  • implement a Query gRPC service definition along with google.api.http REST routes in types.proto
  • implement the QueryServer and wire it up to the app module (after GRPC querier init and bank #5953 is merged)
  • LEAVE the existing querier and REST routes in place and mark them as deprecated (to be removed after v0.40) so that block explorers do not break and have time to migrate
  • follow pagination guidelines addressed in Efficient Querier Pagination #6191

Query service:

CLI query commands:
Some may be blocked on #6571.

  1. Wire up gRPC + grpc-gateway + grpc-web proxy
  1. add grpc-gateway REST annotations

All tackled in #6918:

  • add google.api.http proto files
  • x/bank
  • x/auth
  • x/distribution
  • x/evidence
  • x/mint
  • x/gov
  • x/slashing
  • x/staking
  • x/upgrade
  • x/ibc
  • x/ibc-transfer
@clevinson
Copy link
Contributor

@blushi and @amaurymartiny to tackle x/upgrade and x/evidence

@amaury1093
Copy link
Contributor

x/crisis and x/distribution left. AFAICT x/crisis has no queries at all. I can take care of the last one x/distribution.

@aaronc
Copy link
Member Author

aaronc commented Jul 6, 2020

Looks like x/distribution is being addressed in #6600 @amaurymartiny. Maybe you can get started on the cli query migrations starting with x/upgrade?

@amaury1093
Copy link
Contributor

amaury1093 commented Aug 4, 2020

create flag (enabled by default) to launch the gRPC server in the same process as the API ABCI server

The above item was checked, I just unchecked it:

Should we add specific flags for that? --grpc.enable and --grpc.address? BTW I don't see flags for other server configs such as API server and telemetry, only the toml config.

Ideally, imo, we'd have all the same configs both in flags and in toml.

@alexanderbez
Copy link
Contributor

@amaurymartiny the toml config, as you've pointed out, is the defacto place for such configuration. Having complementary CLI flags is a plus, but not a hard requirement. i.e we should address it, but it's non-blocking as they can be added in future point releases.

I noticed we have gRPC configuration but the toml file was not updated -- that needs to be fixed. Feel free to also add flags 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants