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

Fix a few bugs in the API #9099

Merged
merged 5 commits into from
Jun 26, 2021
Merged

Fix a few bugs in the API #9099

merged 5 commits into from
Jun 26, 2021

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Jun 25, 2021

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

Fixes a few API bugs:

  • /eth/v1/beacon/states/{state_id}/validators and /eth/v1/beacon/states/{state_id}/validators/{validator_id} endpoints were incorrectly registered
  • /eth/v1/node/peers endpoint didn't have query params registered
  • /eth/v1/node/peers should return an empty array when no matching peers are found

Which issues(s) does this PR fix?

N/A

Other notes for review

N/A

@rkapka rkapka added Ready For Review API Api related tasks labels Jun 25, 2021
@rkapka rkapka requested a review from a team as a code owner June 25, 2021 12:02
@rkapka rkapka requested review from kasey, jmozah and terencechain and removed request for a team June 25, 2021 12:02
@codecov
Copy link

codecov bot commented Jun 25, 2021

Codecov Report

Merging #9099 (544ee5c) into develop (b114247) will decrease coverage by 0.08%.
The diff coverage is 0.00%.

❗ Current head 544ee5c differs from pull request most recent head 2404d9a. Consider uploading reports for the commit 2404d9a to get more accurate results

@@             Coverage Diff             @@
##           develop    #9099      +/-   ##
===========================================
- Coverage    60.21%   60.13%   -0.09%     
===========================================
  Files          542      542              
  Lines        38730    38735       +5     
===========================================
- Hits         23321    23293      -28     
- Misses       12049    12082      +33     
  Partials      3360     3360              

Copy link
Member

@terencechain terencechain left a comment

Choose a reason for hiding this comment

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

lgtm!

@terencechain terencechain merged commit 9eb3ff6 into develop Jun 26, 2021
@delete-merged-branch delete-merged-branch bot deleted the misc-api-fixes branch June 26, 2021 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Api related tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants