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

Removed 400 AcceptedErrorCodes from MirrorNodeClient for GET_ACCOUNTS_BY_ID_ENDPOINT path #1651

Merged

Conversation

AlfredoG87
Copy link
Collaborator

Description:
Removed 400 from acceptedErrorCodes for GET_ACCOUNTS_BY_ID_ENDPOINT path, added UT to verify that errors are being thrown for both 400 and 500 error status codes

Related issue(s): #1276

Fixes #

Notes for reviewer:
This replaces PR 1649
And PR 1366

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

…ath, added UT to verify that errors are being thrown for both 400 and 500 error status codes

Signed-off-by: Alfredo Gutierrez <alfredo@swirldslabs.com>
@sonarcloud
Copy link

sonarcloud bot commented Aug 18, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@AlfredoG87 AlfredoG87 marked this pull request as ready for review August 18, 2023 23:30
@AlfredoG87 AlfredoG87 self-assigned this Aug 18, 2023
@AlfredoG87 AlfredoG87 added enhancement New feature or request P2 labels Aug 18, 2023
@AlfredoG87 AlfredoG87 added this to the 0.30.0 milestone Aug 18, 2023
@codecov-commenter
Copy link

Codecov Report

Patch and project coverage have no change.

Comparison is base (4876993) 77.43% compared to head (bc3bc86) 77.43%.

❗ Current head bc3bc86 differs from pull request most recent head 5486065. Consider uploading reports for the commit 5486065 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1651   +/-   ##
=======================================
  Coverage   77.43%   77.43%           
=======================================
  Files          36       36           
  Lines        2761     2761           
  Branches      560      560           
=======================================
  Hits         2138     2138           
  Misses        447      447           
  Partials      176      176           
Files Changed Coverage Δ
packages/relay/src/lib/clients/mirrorNodeClient.ts 88.26% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@Nana-EC Nana-EC left a comment

Choose a reason for hiding this comment

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

LG
If we don't already have on there should be a UT to check that on 404 for those account methods that the method doesn't through an error but returns null

@AlfredoG87
Copy link
Collaborator Author

LG If we don't already have on there should be a UT to check that on 404 for those account methods that the method doesn't through an error but returns null

Yes there are already some UTs that cover those scenarios

@AlfredoG87 AlfredoG87 merged commit 49f3319 into main Aug 21, 2023
22 checks passed
@AlfredoG87 AlfredoG87 deleted the 1276-refactor-GetAccountsById-remove-accepted-code-2 branch August 21, 2023 14:35
@ebadiere ebadiere modified the milestones: 0.30.0, 0.31.1 Sep 13, 2023
mshakeg pushed a commit to mshakeg/hedera-json-rpc-relay that referenced this pull request Oct 18, 2023
…_BY_ID_ENDPOINT path (hashgraph#1651)

removed 400 from acceptedErrorCodes for GET_ACCOUNTS_BY_ID_ENDPOINT path, added UT to verify that errors are being thrown for both 400 and 500 error status codes

Signed-off-by: Alfredo Gutierrez <alfredo@swirldslabs.com>
Signed-off-by: Mo Shaikjee <shaikjeemohammed@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P2
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants