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

add nodes feature requests #1241

Merged
merged 20 commits into from
May 17, 2024

Conversation

cfaur09
Copy link
Contributor

@cfaur09 cfaur09 commented Apr 16, 2024

Proposed Changes

Add following features:

/nodes

  • Adding withIdentityInfo filter to be able to return for every node informations about identity
  • Adding qualifiedStake field
  • Adding qualifiedStake sort criteria
  • Adding new unit tests for withIdentityInfo feature

/stake

  • Adding totalObservers field
  • Adding new unit tests for totalObservers feature

How to test

  • /nodes?withIdentityInfo=true -> should return for every node identityInfo field

  • /nodes?withIdentityInfo=false -> should not return for every node identityInfo field

  • /nodes?sort=qualifiedStake&order=desc -> should sort all nodes by qualifiedStake filter criteria desc

  • /stake -> totalObservers field should be defined

@cfaur09 cfaur09 added refactoring The same functionality is maintained, but in an improved way feature New feature or request labels Apr 23, 2024
@cfaur09 cfaur09 self-assigned this Apr 23, 2024
@bogdan-rosianu bogdan-rosianu self-requested a review April 24, 2024 08:57
bogdan-rosianu
bogdan-rosianu previously approved these changes Apr 24, 2024
@tanghel tanghel merged commit 84b63e3 into development May 17, 2024
2 of 3 checks passed
@tanghel tanghel deleted the SERVICES-2306-add-nodes-feature-requests branch May 17, 2024 19:58
IosifGabriel pushed a commit to buidly/mvx-api that referenced this pull request May 22, 2024
* add nodes feature requests

* add totalObservers field + tests

* add totalObservers and nodes/auctions route

* add groupBy identity and sortDescending by qualifiedStake

* group also by owner

* refactoring groupBy

* add pagination

* refactoring

* refactorin groupBy

* add distribution identity info

* improved withIdentity query info

* improved version of nodes/auctions data

* convenient sorting defaults

* add provider info value
add bls key for groups with no provider/identity and single node

* update tests

* update nodes mock json
add new specs

* update shards.spec.ts

* include totalObservers

---------

Co-authored-by: tanghel <tanghel@live.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request refactoring The same functionality is maintained, but in an improved way
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants