-
Notifications
You must be signed in to change notification settings - Fork 101
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
NUM-384 filters account by their balance #217
Conversation
Codecov Report
@@ Coverage Diff @@
## main #217 +/- ##
==========================================
+ Coverage 67.16% 67.62% +0.45%
==========================================
Files 72 72
Lines 3816 3870 +54
==========================================
+ Hits 2563 2617 +54
Misses 1001 1001
Partials 252 252
Continue to review full report at Codecov.
|
f805184
to
e7f5dd9
Compare
e26a3c3
to
0da6ddf
Compare
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 do you think about also adding unit tests in the sqlstorage package for this new feature?
@antoinegelloz @gfyrag maybe we try to merge #216 before this one ? |
Yes we could :) Did you have a look at it already? |
@all-contributors please add @jdupas22 for code |
I've put up a pull request to add @jdupas22! 🎉 |
010cf49
to
e0235ee
Compare
feat(api_test): add unit tests for balance filtering in get accounts controller refactor(accounts_balance_filter): convert balance into integer during db request for sqlite, and replace balance_operator if workflow by a switch case feat(accounts_balance_filter): add parameter validation in controller, panics if parameters are bad in storage, and few fixes in the tests feat(accounts_balance_filter): fix missing return after responseError in controller, and various test improvements refactor(accounts_controller): rename constants in camel case to be more standard refactor(query): dissolve query package into storage, and better handling of enum BalanceOperator
e0235ee
to
6986f0b
Compare
This feature allows us to filters the accounts we get using the /{ledger}/accounts route by their balance
The request now takes two more optionnal parameters, and <balance_operator>
I also tried to make the tests easier to read by bracketing them