[R4R] #2730 add tx search pagination related CLI/REST API parameter#2894
[R4R] #2730 add tx search pagination related CLI/REST API parameter#2894cwgoes merged 6 commits intocosmos:developfrom
Conversation
|
cc @fedekunze per discussion: #2927 |
94f253f to
d0faa4f
Compare
Codecov Report
@@ Coverage Diff @@
## develop #2894 +/- ##
==========================================
- Coverage 55.65% 55.2% -0.45%
==========================================
Files 134 134
Lines 9716 9526 -190
==========================================
- Hits 5407 5259 -148
+ Misses 3965 3936 -29
+ Partials 344 331 -13 |
|
manually tested rest-server: command line: |
ac3c33f to
81b1219
Compare
|
cc @fedekunze I think you had thoughts on this. |
fedekunze
left a comment
There was a problem hiding this comment.
Changes so far LGTM. Thanks @ackratos for fixing this ! A few additions are required before merging:
- May I ask you to update the docs by adding the flags on gaiacli.md as well?
- Can you add a small test case on cli_test.go too ?
- Change
perPageforlimitaccording to standards (Source)
thanks for the suggestions. I am working on them |
3d779a9 to
884aab7
Compare
fixed, could you please review this PR again? Thanks |
884aab7 to
7933438
Compare
|
@ackratos how do I query the second page? Can we add an offset (either # of txns or pages) here so that subsequent pages can be queried? |
This PR added two (missing) parameters to cli and rest api: This is pseudo-implementation because at tendermint tx searching side, it still query all txs meet the tags requirement only return the pagination data. This will help reduce network roundtrips but not saving query CPU time on node. |
|
Needs merge conflict resolution, then I'd be glad to review (maybe @fedekunze could take a look again too). |
7933438 to
fa1c193
Compare
thanks, done |
fa1c193 to
687a222
Compare
fedekunze
left a comment
There was a problem hiding this comment.
sorry for the delay here. One final check and we should be good to go
alexanderbez
left a comment
There was a problem hiding this comment.
Looks good @ackratos, just a few minor bits of feedback :)
|
@ackratos Sorry for the long review process, but if you could address this last round of comments we can get this merged. Will you be able to do that this week? |
yes, really sorry I was busy this week... |
|
@ackratos Totally understand! Thank you for working with us to get this right! |
4172565 to
5898c6f
Compare
5898c6f to
8777d8c
Compare
# Conflicts: # cmd/gaia/cli_test/cli_test.go
updated this PR, could you please review again? |
alexanderbez
left a comment
There was a problem hiding this comment.
Thanks @ackratos -- I think there is still an issue with the use of constants. Also see my comments on parseHTTPArgs, otherwise, I think we can merge this PR afterwards 👍
x/gov/client/utils/query.go
Outdated
There was a problem hiding this comment.
Looks like these still need to be constants?
|
@ackratos agree with @alexanderbez and @alessio. Thanks for updating the tests as well! Glad they are passing. |
c779e59 to
7e5c3b9
Compare
thanks! fixed again:) |
closes #2730
closes #466
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.
Wrote tests
Updated relevant documentation (
docs/)Added entries in
PENDING.mdwith issue #rereviewed
Files changedin the github PR explorerFor Admin Use: