-
Notifications
You must be signed in to change notification settings - Fork 106
Add docs to get_account_transactions
and fix Sphinx dependency issues
#427
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
Conversation
Here's the script I used to test the code:
And the output (which showed it produce multiple results):
|
Would a unit test suffice to make sure it is passed through to the underlying methods? |
@ckniffen I'm not really sure how to set up a unit test that would do that with the xrpl-py setup. I don't think it would add much protection either, as if future changes break the code, it'll likely break the return instead of whether the function receives parameters. @mvadari do you happen to know any examples of unit tests within the repo which have a similarly "rare" condition to test that I could look up as examples of how to test something like a "marker" appearing/being used? |
Separately, @LimpidCrypto with this implementation I wrote, the function does NOT return the marker, which is a bit of a usability issue. (Because it doesn't allow for continuous pagination). Directly using the request you can do normal pagination by retrieving the marker yourself (as I did in the test script above), but it's not exactly an easier process. Would this implementation work for the problem you were describing, or is it necessary to also retrieve the marker after each call? (In which case I'm thinking of creating a separate function to avoid breaking changes) |
As you already said it would not really make it easier. |
Ok, I'll make a function called If there's any considerations I'm missing which make that plan not ideal, please let me know :) |
(Still need to export these new functions, which I've been struggling to do because it seems like Sphinx isn't working - so the pre-commit hook for Sphinx is blocking changes. Trying to figure out why that is) |
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.
What's the objective of this new function? I don't think it adds any utility over using the request directly.
@mvadari pointed out that this |
get_account_transactions
and fix Sphinx dependency issues
(This PR still is also required to fix the Sphinx dependency issues which were preventing merges previously - updated the PR |
High Level Overview of Change
Add the optional parameter
marker
toget_account_transactions
to allow pagination through results.Context of Change
Resolves #426
Type of Change
Test Plan
Manual run of the code against testnet since the integration tests currently use a standalone node which doesn't have enough results to produce a
marker
.