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

Peers Managing API #8602

Merged
merged 57 commits into from
Apr 10, 2024
Merged

Peers Managing API #8602

merged 57 commits into from
Apr 10, 2024

Conversation

khoaguin
Copy link
Member

@khoaguin khoaguin commented Mar 20, 2024

Issue: https://github.com/OpenMined/Heartbeat/issues/1150

  • Test if the delete API for NodePeer works
  • Test if route functionalities work (NetworkService's add_route, verify_route )
  • Add a service method to update route priority
  • Add a service method to delete routes for a given node peer
  • Prompting gateway admin and ask for confirmation if it is manually deleting the last route to a domain so that the domain will be removed as a peer
  • Test that the proxy client that should always connect via the route with the highest priority

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@khoaguin khoaguin added the 0.8.6 label Mar 20, 2024
@khoaguin khoaguin self-assigned this Mar 20, 2024
@khoaguin khoaguin changed the title [WIP] Peers Managing Api [WIP] Peers Managing API Mar 20, 2024
kiendang

This comment was marked as resolved.

@madhavajay madhavajay added 0.8.7 and removed 0.8.6 labels Apr 4, 2024
Copy link
Member

@shubham3121 shubham3121 left a comment

Choose a reason for hiding this comment

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

Nice work @khoaguin !! 💯
Left some comment

packages/syft/src/syft/service/network/network_service.py Outdated Show resolved Hide resolved
packages/syft/src/syft/service/network/network_service.py Outdated Show resolved Hide resolved
packages/syft/src/syft/service/network/network_service.py Outdated Show resolved Hide resolved
packages/syft/src/syft/service/network/network_service.py Outdated Show resolved Hide resolved
packages/syft/src/syft/service/network/network_service.py Outdated Show resolved Hide resolved
packages/syft/src/syft/service/network/node_peer.py Outdated Show resolved Hide resolved
packages/syft/src/syft/service/network/node_peer.py Outdated Show resolved Hide resolved
packages/syft/src/syft/service/network/node_peer.py Outdated Show resolved Hide resolved
khoaguin and others added 4 commits April 9, 2024 14:08
…rings

- improve returned SyftError message if failed to create a remote client for a peer

Co-authored-by: Shubham Gupta <shubhamgupta3121@gmail.com>
instead of the whole NodePeer object

Co-authored-by: Shubham Gupta <shubhamgupta3121@gmail.com>
…ity`

 now takes peer's verify key instead of the whole NodePeer object

Co-authored-by: Shubham Gupta <shubhamgupta3121@gmail.com>
Copy link
Member

@shubham3121 shubham3121 left a comment

Choose a reason for hiding this comment

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

Great work @khoaguin !!! 💯 🎉
These APIs would be really handy as an Admin and help in managing the Gateway. 🙏🏾

…ry components

Co-authored-by: Shubham Gupta <shubhamgupta3121@gmail.com>
@khoaguin khoaguin merged commit 719165b into OpenMined:dev Apr 10, 2024
32 checks passed
@khoaguin khoaguin deleted the peer-managing-api branch April 10, 2024 08:12
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