Skip to content

fix: prioritize pagination paths over filters - #345

Open
arunimshukla wants to merge 1 commit into
fireblocks:masterfrom
arunimshukla:fix/transaction-pagination-priority
Open

arunimshukla wants to merge 1 commit into
fireblocks:masterfrom
arunimshukla:fix/transaction-pagination-priority

Conversation

@arunimshukla

Copy link
Copy Markdown

Summary

  • prioritize nextOrPreviousPath when both pagination arguments are supplied
  • preserve pageFilter behavior for the initial request
  • document the precedence rule in the method contract

Why

getTransactionsWithPageInfo currently checks pageFilter first. Callers that retain their original filters while passing the nextPage URL therefore receive the first page repeatedly instead of advancing through the result set.

Testing

  • npm run build (TypeScript and TSLint)

Fixes #268

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

getTransactionsWithPageInfo won't iterate through pages when pageFilter is defined

1 participant