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

Improve /block/transaction description regarding pagination #32

Conversation

AlanVerbner
Copy link
Contributor

Motivation

The only way to paginate transactions in case the BlockResponse might get too big if returning all of them, is to just return the metadata and use BlockTransactionRequest to do so.

See https://community.rosetta-api.org/t/how-to-return-data-without-being-able-to-paginate/98/4?u=alan.verbner

Solution

Just added a brief description

Open questions

N/A

@patrick-ogrady
Copy link
Contributor

@AlanVerbner would you mind running make gen? This will fix the test failures here.

api.yaml Outdated
@@ -162,6 +162,9 @@ paths:
Fetching a transaction by hash is considered an Explorer Method
(which is classified under the Future Work section).

This method can be used to let consumers to paginate results when the
block trasactions count is too big to be returned in a single [BlockResponse](#/components/schemas/BlockResponse).
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
block trasactions count is too big to be returned in a single [BlockResponse](#/components/schemas/BlockResponse).
block trasactions count is too big to be returned in a single BlockResponse.

Links in the descriptions break the formatting 😢 Hopefully, we can fix this issue and do one large pass on adding links in the future.

@AlanVerbner AlanVerbner force-pushed the feature/block-transaction-pagination branch from 076a2db to cbd7909 Compare July 29, 2020 23:29
@AlanVerbner
Copy link
Contributor Author

@patrick-ogrady I addressed all your comments 😄

Copy link
Contributor

@patrick-ogrady patrick-ogrady left a comment

Choose a reason for hiding this comment

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

🎉

@patrick-ogrady patrick-ogrady merged commit 77be44b into coinbase:master Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants