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

Add pagination response for commands #6825

Merged
merged 24 commits into from
Aug 7, 2020
Merged

Conversation

atheeshp
Copy link
Contributor

ref: #5921

Description

closes: #XXXX


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.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@atheeshp atheeshp changed the title Adding pagination response for commands Adds pagination response for commands Jul 23, 2020
@codecov
Copy link

codecov bot commented Jul 23, 2020

Codecov Report

Merging #6825 into master will not change coverage.
The diff coverage is 15.38%.

@@           Coverage Diff           @@
##           master    #6825   +/-   ##
=======================================
  Coverage   62.01%   62.01%           
=======================================
  Files         519      519           
  Lines       32060    32060           
=======================================
  Hits        19883    19883           
  Misses      10559    10559           
  Partials     1618     1618           

Copy link
Collaborator

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

utACK

@fedekunze fedekunze added the A:automerge Automatically merge PR once all prerequisites pass. label Aug 6, 2020
Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

yes, makes sense to me 👍

x/distribution/client/cli/cli_test.go Show resolved Hide resolved
x/bank/client/cli/cli_test.go Show resolved Hide resolved
@anilcse anilcse changed the title Adds pagination response for commands Add pagination response for commands Aug 6, 2020
Copy link
Collaborator

@anilcse anilcse left a comment

Choose a reason for hiding this comment

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

Looks good, we need to address cli tests for all these queries though. Not blocking on this PR, it can be addressed in a separate PR.

@@ -342,7 +342,7 @@ $ %s query staking delegations cosmos1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p
return err
}

return clientCtx.PrintOutput(res.DelegationResponses)
return clientCtx.PrintOutput(res)
Copy link
Collaborator

@anilcse anilcse Aug 6, 2020

Choose a reason for hiding this comment

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

We should add cli-tests for these queries, I remember @sahith-narahari working on querier tests?

@mergify mergify bot merged commit 3322e26 into master Aug 7, 2020
@mergify mergify bot deleted the atheesh/5921-missing-grpc branch August 7, 2020 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants