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 copy paste with ids #1509

Merged
merged 4 commits into from
Oct 20, 2021
Merged

Fix copy paste with ids #1509

merged 4 commits into from
Oct 20, 2021

Conversation

barmac
Copy link
Member

@barmac barmac commented Oct 20, 2021

Previously, we just blindly copied ID as if it were a primitive value, if the ID wasn't claimed. This PR adds special handling for the IDs. If the ID is taken, we disallow copy. If it's free, we first claim it and then re-use it.

verify.mov

Related to camunda/camunda-modeler#1410

@barmac barmac requested review from nikku and philippfromme October 20, 2021 09:24
@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Oct 20, 2021
@barmac
Copy link
Member Author

barmac commented Oct 20, 2021

The newly added test case fails when it's run in the test suite. It works fine in an only test.

@barmac
Copy link
Member Author

barmac commented Oct 20, 2021

@nikku @philippfromme Ready for review

test/spec/ModelerSpec.js Outdated Show resolved Hide resolved
barmac added a commit that referenced this pull request Oct 20, 2021
@barmac barmac merged commit 6243adf into master Oct 20, 2021
@barmac barmac deleted the fix-copy-paste branch October 20, 2021 15:07
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Oct 20, 2021
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