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

feat: add pagination to tx list #895

Merged
merged 10 commits into from
Feb 24, 2025
Merged

feat: add pagination to tx list #895

merged 10 commits into from
Feb 24, 2025

Conversation

im-adithya
Copy link
Member

Fixes #29

Needs some more testing, drafting till then

Screenshot 2024-12-16 at 6 57 54 PM Screenshot 2024-12-16 at 6 58 56 PM Screenshot 2024-12-16 at 6 58 12 PM

@rolznz
Copy link
Contributor

rolznz commented Jan 17, 2025

@im-adithya what is the status of this one?

@im-adithya im-adithya marked this pull request as ready for review February 18, 2025 18:00
@rolznz rolznz requested a review from pavanjoshi914 February 19, 2025 07:40
@@ -50,7 +50,7 @@ func (controller *nip47Controller) HandleListTransactionsEvent(ctx context.Conte
transactionType = &listParams.Type
}

dbTransactions, err := controller.transactionsService.ListTransactions(ctx, listParams.From, listParams.Until, limit, listParams.Offset, listParams.Unpaid || listParams.UnpaidOutgoing, listParams.Unpaid || listParams.UnpaidIncoming, transactionType, controller.lnClient, &appId, false)
dbTransactions, _, err := controller.transactionsService.ListTransactions(ctx, listParams.From, listParams.Until, limit, listParams.Offset, listParams.Unpaid || listParams.UnpaidOutgoing, listParams.Unpaid || listParams.UnpaidIncoming, transactionType, controller.lnClient, &appId, false)
Copy link
Contributor

Choose a reason for hiding this comment

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

would it be useful to include the total count in the response? there's no spec for it yet but I think it's a good addition

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Added

Copy link
Contributor

@rolznz rolznz left a comment

Choose a reason for hiding this comment

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

tACK (just minor comments)

@rolznz rolznz mentioned this pull request Feb 21, 2025
5 tasks
@im-adithya im-adithya merged commit 5b95e14 into master Feb 24, 2025
6 of 11 checks passed
@im-adithya im-adithya deleted the task-pagination branch February 24, 2025 15:50
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.

Add pagination to transaction lists
2 participants