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

api: endpoint /accounts/{accountId} now includes transfersCount and feesCount #1360

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

altergui
Copy link
Contributor

@altergui altergui commented Aug 7, 2024

fixes #1357

@altergui altergui requested a review from selankon August 7, 2024 11:20
@altergui altergui self-assigned this Aug 7, 2024
api/accounts.go Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Aug 7, 2024

Pull Request Test Coverage Report for Build 10284564404

Details

  • 22 of 26 (84.62%) changed or added relevant lines in 3 files are covered.
  • 27 unchanged lines in 5 files lost coverage.
  • Overall coverage increased (+0.1%) to 62.691%

Changes Missing Coverage Covered Lines Changed/Added Lines %
api/accounts.go 13 17 76.47%
Files with Coverage Reduction New Missed Lines %
vochain/indexer/indexer.go 2 77.18%
vochain/transaction/admin_tx.go 2 48.81%
vochain/transaction/transaction.go 2 59.23%
vochain/indexer/process.go 3 77.03%
api/chain.go 18 46.34%
Totals Coverage Status
Change from base Build 10283147825: 0.1%
Covered Lines: 16457
Relevant Lines: 26251

💛 - Coveralls

these filters now return an empty list (not an error)
* /accounts?accountId=foobar
* /elections?electionId=foobar
* /chain/organizations?organizationId=foobar

so the errors ErrAccountNotFound, ErrElectionNotFound, ErrOrgNotFound happen only on:
* /chain/transfers?accountId=foobar
* /chain/fees?accountId=foobar
* /votes?electionId=foobar
* /elections?organizationId=foobar
@altergui
Copy link
Contributor Author

altergui commented Aug 7, 2024

included some more fixes, as separate commits since not directly related to the original PR. merging without squashing

@altergui altergui merged commit 2491a75 into main Aug 7, 2024
17 checks passed
@altergui altergui deleted the feat/api-counts branch August 7, 2024 15:33
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.

feature: return transfers and fees count on acocunt detail
3 participants