-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
x/{gov,params,upgrade,distribution} CLI: In-Process test & use grpc query service #6664
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6664 +/- ##
==========================================
- Coverage 60.25% 60.22% -0.03%
==========================================
Files 512 511 -1
Lines 31502 31532 +30
==========================================
+ Hits 18982 18991 +9
- Misses 11073 11105 +32
+ Partials 1447 1436 -11 |
This pull request introduces 1 alert when merging 439990e into ebc3ad6 - view on LGTM.com new alerts:
|
7a00771
to
ac7790c
Compare
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
Left some comments about naming of PageRequest
parameters that should be addressed in a separate PR.
ValidatorAddress: validatorAddr, | ||
StartingHeight: startHeight, | ||
EndingHeight: endHeight, | ||
Req: pageReq, |
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 didn't catch this before but page parameters should not be called req
. I would just use page
or something like that. This can be fixed separate from this PR but it should be addressed before release. /cc @sahith-narahari @anilcse @atheeshp
ProposalStatus: proposalStatus, | ||
Voter: voterAddr, | ||
Depositor: depositorAddr, | ||
Req: pageReq, |
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.
Ditto
|
||
res, err := queryClient.Votes( | ||
context.Background(), | ||
&types.QueryVotesRequest{ProposalId: proposalID, Req: pageReq}, |
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.
Ditto
…uery service (cosmos#6664) * refactor CLI to use grpc query service * In process CLI for gov * ReadQueryCommandFlags * gov tx * Fix compiler errors * Formatting * x/distribution: use gRPC query * Consistent * Fix x/distrib test * Update x/gov * Add ReadQueryCommandFlags * Fix lint * Revert x/params * x/params use grpc query * Fix tests * Use page request Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Description
Refactoring CLI for in-process testing, and use gRPC query service in CLI.
TODO:
ref:
In-process Testing:
CLI to use grpc query service:
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes