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 reversible participant creation #168

Merged
merged 11 commits into from
Oct 29, 2020

Conversation

yT0n1
Copy link
Collaborator

@yT0n1 yT0n1 commented Oct 6, 2020

Fix #142.
Fixes an issue where the participant business object would be created, e.g., when dragging a task from the pallet, or by creating a new participant from the context menu, but not removed when reverting that action.

This is fixed by wrapping the #createParticipant function from BandUtil.js with a Command in ('participant.create') ChoreoParticipantHandler.js which in turn is also wrapped by ChoreoModeling.js with #createParticipant for usability.

…be create, e.g., when dragging a task from the pallet, or by creating a new participant from the context menu, but not removed when reverting that action.

This is fixed by wrapping the createParticipant function from BandUtil.js with a Command in ChoreoParticipantHandler.js which in turn is also wrapped by ChoreoModeling.js for usability.
@yT0n1 yT0n1 requested a review from jan-ladleif October 6, 2020 22:14
@yT0n1 yT0n1 changed the title Adds revertible participant creation. Adds revertible participant creation Oct 6, 2020
@yT0n1 yT0n1 changed the title Adds revertible participant creation Add revertible participant creation Oct 6, 2020
Copy link
Member

@jan-ladleif jan-ladleif left a comment

Choose a reason for hiding this comment

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

I moved all the participant creation logic into the handler, seems cleaner than to have it in the util!

@jan-ladleif jan-ladleif changed the title Add revertible participant creation Add reversible participant creation Oct 29, 2020
@jan-ladleif jan-ladleif merged commit f95acce into master Oct 29, 2020
@jan-ladleif jan-ladleif deleted the fix/revert-participant-creation branch October 29, 2020 11:37
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.

Creating a new Participant is not reverted correctly
2 participants