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

chore: align deleteParticipantContext with DR #446

Conversation

paullatzelsperger
Copy link
Member

What this PR changes/adds

Aligns the code base with this decision-record, specifically the delete-participant action.

In doing so, the following changes were made

  • new event type ParticipantContextDeleting was introduced to signal an impending deletion. This event is consumed by the ParticipantContextEventCoordinator that triggers the DidDocumentService to unpublish and delete the DID Docs, and the KeyPairService to revoke the key.

  • the DidDocumentService does not consume the ParticipantContextDeleted event anymore, because it gets invoked directly by the coordinator

  • KeyPairServiceImpl: added transaction context

  • unpublishing DIDs: the check if a DidDocument is in PUBLISHED state was moved from the publisher to the DidDocumentService

Why it does that

alignment with the decision decision-records

Further notes

other changes in the PR may not yet correctly reflect other sections of the D-R, those will get refactored in subsequent PRs.

Linked Issue(s)

Closes # <-- insert Issue number if one exists

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@paullatzelsperger paullatzelsperger added the enhancement New feature or request label Sep 9, 2024
@paullatzelsperger paullatzelsperger merged commit 4ea5163 into eclipse-edc:main Sep 9, 2024
18 of 20 checks passed
@paullatzelsperger paullatzelsperger deleted the chore/align_ih_with_dr_updateParticipant branch September 9, 2024 15:40
@paullatzelsperger paullatzelsperger restored the chore/align_ih_with_dr_updateParticipant branch September 9, 2024 15:40
@paullatzelsperger paullatzelsperger deleted the chore/align_ih_with_dr_updateParticipant branch September 9, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants