-
Notifications
You must be signed in to change notification settings - Fork 145
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: invoice pagination #3512
feat: invoice pagination #3512
Conversation
77d1b57
to
2747f38
Compare
a667dca
to
3a70d85
Compare
const walletIds = wallets.map((wallet) => wallet.id) | ||
|
||
const parsedPaginationArgs = parsePaginationArgs({ | ||
const parsedPaginationArgs = checkedToPaginatedQueryArgs({ |
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.
I guess the variable should now be checkedPaginationArgs
? Or even better paginationArgs
and rename the above one to rawPaginationArgs
... the checked type should be the default one (ie simpler name) the unchecked one should have the special name (ie prefix).
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.
Will make this change.
@@ -2,6 +2,8 @@ type LedgerError = import("./errors").LedgerError | |||
type FeeDifferenceError = import("./errors").FeeDifferenceError | |||
type LedgerServiceError = import("./errors").LedgerServiceError | |||
|
|||
type PaginationArgs = import("graphql-relay").ConnectionArguments |
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.
Domain should not depend on external libraries.
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.
This was already present before the PR. I think it might be showing up as a diff because I had moved it and then added it back and now there might be some whitespace change. I will have a follow up pr that fixes Transaction pagination by using the new types and removing pending transactions from it. The follow up pr can not be merged till the mobile app has migrated to using the pendingTransactions endpoint.
3a70d85
to
1e64dce
Compare
- remove use of graphql types
1e64dce
to
429b62d
Compare
DISCLAIMER:
Follow Up Items: