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

Fixes bool filters, add new bool filters, and add createdAt and updatedAt to get_transactions #41

Merged
merged 5 commits into from
Nov 22, 2023

Conversation

CalvinChanCan
Copy link
Contributor

This PR does the following:

Fixes Bool Filter Default Behavior

  • Resolves an issue with bool filters where the default behavior, when not explicitly provided, incorrectly defaulted to False, resulting in unintended filter application. The fix ensures that if bool filters are not provided, the filter is not applied.

Introduces Two New Bool Filters

  • Adds two new bool filters, imported_from_mint and synced_from_institution, providing more detail in filtering transactions based on their import source.

Transaction Response Enhancements

  • Includes createdAt and updatedAt fields in the transaction response.

Please let me know if there's anything I should change or any feedback. Thanks!

Copy link
Owner

@hammem hammem left a comment

Choose a reason for hiding this comment

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

Thanks, @CalvinChanCan , for finding the bug and fixing it.

One small copypasta error I noted, but great otherwise.

variables["filters"]["isSplit"] = is_split

if imported_from_mint is not None:
variables["filters"]["importedFromMint"] = is_split
Copy link
Owner

Choose a reason for hiding this comment

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

Looks like this should be 'imported_from_mint'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah thanks for catching that! Just fixed it.

@grablair grablair mentioned this pull request Nov 21, 2023
@grablair
Copy link
Collaborator

grablair commented Nov 21, 2023

Will fix #46

@hammem hammem merged commit 2b2d4a0 into hammem:main Nov 22, 2023
1 check passed
@hammem
Copy link
Owner

hammem commented Nov 22, 2023

Thanks all!

@hammem hammem linked an issue Nov 22, 2023 that may be closed by this pull request
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.

Missing transactions
3 participants