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 old routing protocol code #2466

Merged

Conversation

dbluhm
Copy link
Contributor

@dbluhm dbluhm commented Sep 6, 2023

Resolves #2430.

This PR removes the old deprecated routing protocol messages pertaining to coordinating a "route" with another connection. This functionality was superseded by the coordinate mediation protocol. It's been well over two years since it was superseded so this PR is just taking care of the clean up that probably ought to have been done a while ago.

In this PR you will see:

  • Messages and handlers for route queries and updates have been removed
  • Methods on the route manager to facilitate route updates have been removed
  • The Coordinate Mediation Manager now directly implements logic for performing route updates. It was previously borrowing this logic from the route manager.
  • Route related code has been removed from the connection manager and connection record. This was done in such a way that the routing_state in the wallet records will still be accepted but will (continue to) be unused.
  • The RouteManager continues to exist and is used to manage creation of route records. Its responsibilities are now appropriately narrowed to this. It is used by the MediationManager and MultitenancyManager to track routes.

Copy link
Contributor

@usingtechnology usingtechnology left a comment

Choose a reason for hiding this comment

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

I wish I could provide more feedback on the actual logic changes/updates but not super familiar with Routing and RoutingManager. So my feedback is very much surface level. Looks good and makes sense.

And associated methods and models

Signed-off-by: Daniel Bluhm <[email protected]>
This was previously borrowing logic from the old route manager

Signed-off-by: Daniel Bluhm <[email protected]>
While permitting stored connection records to continue to have an unused
`routing_state` attribute in them.

Signed-off-by: Daniel Bluhm <[email protected]>
@dbluhm dbluhm force-pushed the chore/remove-route-protocol branch from e5e6724 to ecbbc99 Compare September 6, 2023 19:24
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 6, 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
No Duplication information No Duplication information

@dbluhm dbluhm enabled auto-merge September 6, 2023 19:24
@dbluhm dbluhm merged commit 3a0552c into openwallet-foundation:main Sep 6, 2023
@dbluhm dbluhm deleted the chore/remove-route-protocol branch September 6, 2023 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove old route protocol
3 participants