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

REST API: use ErrorResponse instead of AccountsErrorResponse #3737

Merged

Conversation

cce
Copy link
Contributor

@cce cce commented Mar 9, 2022

Summary

Complementing algorand/indexer#916 this merges the AccountsErrorResponse fields into the "data" object in ErrorResponse, so SDKs do not to have to distinguish between different error response types.

Test Plan

Update existing tests checking the old AccountsErrorResponse fields.

@codecov-commenter
Copy link

codecov-commenter commented Mar 9, 2022

Codecov Report

Merging #3737 (9d35963) into master (5a72986) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3737      +/-   ##
==========================================
- Coverage   49.57%   49.56%   -0.01%     
==========================================
  Files         392      392              
  Lines       68590    68592       +2     
==========================================
- Hits        34006    34001       -5     
- Misses      30845    30851       +6     
- Partials     3739     3740       +1     
Impacted Files Coverage Δ
daemon/algod/api/server/v2/handlers.go 0.00% <0.00%> (ø)
network/wsPeer.go 65.83% <0.00%> (-2.50%) ⬇️
catchup/peerSelector.go 98.95% <0.00%> (-1.05%) ⬇️
network/requestTracker.go 71.12% <0.00%> (+0.43%) ⬆️
data/transactions/verify/txn.go 45.02% <0.00%> (+0.86%) ⬆️
ledger/roundlru.go 96.22% <0.00%> (+5.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a72986...9d35963. Read the comment docs.

@tsachiherman tsachiherman merged commit b92d526 into algorand:master Mar 10, 2022
@cce cce deleted the feature/unlimited-assets-error-response branch March 10, 2022 16:15
jannotti pushed a commit to jannotti/go-algorand that referenced this pull request Mar 13, 2022
## Summary

Complementing algorand/indexer#916 this merges the AccountsErrorResponse fields into the "data" object in ErrorResponse, so SDKs do not to have to distinguish between different error response types.

## Test Plan

Update existing tests checking the old AccountsErrorResponse fields.
@algojack algojack mentioned this pull request Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants