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

Remove entityStakeQuery from accounts REST API #7391

Conversation

edwin-greene
Copy link
Contributor

Description:
Remove the unnecessary entityStakeQuery from the accounts balances REST api queries.

Related issue(s):

Fixes #7237

Notes for reviewer:

Checklist

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

Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
@edwin-greene edwin-greene added bug Type: Something isn't working rest Area: REST API labels Dec 15, 2023
@edwin-greene edwin-greene self-assigned this Dec 15, 2023
Copy link

sonarcloud bot commented Dec 15, 2023

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

codecov bot commented Dec 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a1b9c41) 92.46% compared to head (6c311ef) 92.57%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #7391      +/-   ##
============================================
+ Coverage     92.46%   92.57%   +0.11%     
+ Complexity     6870     6760     -110     
============================================
  Files           865      848      -17     
  Lines         28608    28334     -274     
  Branches       3349     3325      -24     
============================================
- Hits          26451    26231     -220     
+ Misses         1386     1337      -49     
+ Partials        771      766       -5     

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

@edwin-greene edwin-greene added this to the 0.95.0 milestone Dec 15, 2023
@edwin-greene edwin-greene marked this pull request as ready for review December 15, 2023 19:37
@edwin-greene edwin-greene requested a review from a team December 15, 2023 19:37
Copy link
Collaborator

@xin-hedera xin-hedera left a comment

Choose a reason for hiding this comment

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

LGTM

@edwin-greene edwin-greene merged commit 7314594 into main Dec 15, 2023
27 checks passed
@edwin-greene edwin-greene deleted the 7237-db-query-in-rest-api-accountsid-includes-unnecessary-entity-stake-condition branch December 15, 2023 20:53
bilyana-gospodinova pushed a commit that referenced this pull request Jan 19, 2024
Remove entityStakeQuery

Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
bilyana-gospodinova pushed a commit that referenced this pull request Jan 24, 2024
Remove entityStakeQuery

Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type: Something isn't working rest Area: REST API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DB query in REST api /accounts/{id} includes unnecessary entity stake condition
3 participants