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: clean up requests and invites #2560

Merged

Conversation

dbluhm
Copy link
Contributor

@dbluhm dbluhm commented Oct 24, 2023

On connection deletion, all records strongly associated with the connection should be deleted. These records include connection metadata, connection requests, and connection invitations.

Records referencing the connection ID such as mediation or routing records are not "strongly" associated with the connection; there are other mechanisms in place to enable deletion of these records through the Admin API. The records for metadata, requests, and invitations, on the other hand, cannot be cleaned up any other way.

This PR makes sure these records are deleted when the connection is deleted.

It might be a good idea for us to look at other records that ought to be cleaned up automatically. Those can be addressed in future work.

On connection deletion, all records strongly associated with the
connection should be deleted. These records include connection metadata,
connection requests, and connection invitations.

Records referencing the connection ID such as mediation or routing
records are not "strongly" associated with the connection; there are
other mechanisms in place to enable deletion of these records through
the Admin API. The records for metadata, requests, and invitations, on
the other hand, cannot be cleaned up any other way.

This PR makes sure these records are deleted when the connection is
deleted.

It might be a good idea for us to look at other records that ought to be
cleaned up automatically. Those can be addressed in future work.

Signed-off-by: Daniel Bluhm <[email protected]>
@sonarqubecloud
Copy link

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

@swcurran swcurran merged commit 84df2f1 into openwallet-foundation:main Oct 24, 2023
8 checks passed
@dbluhm dbluhm deleted the fix/cleanup-requests-and-invites branch January 30, 2024 21:31
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.

2 participants