-
Notifications
You must be signed in to change notification settings - Fork 137
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: make name change behavior not break on name change #917
fix: make name change behavior not break on name change #917
Conversation
After a second look at the name change behavior, I am not super happy about having two components doing the same thing (boxed expression and shared). However, for this fix I decided to only make a small change to avoid a potential bug. |
Once merged, this will be released as 16.8.2 |
packages/dmn-js-drd/test/spec/features/modeling/behavior/NameChangeBehaviorSpec.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We missed updating the name
attribute via modeling APIs and I see this is now covered.
Relevant follow-up: Will it break if we update moddle properties?
Hmm I think it will just not trigger. We could add it too. |
But I'd do it in a separate PR. Ignoring an update is not breaking the editor. |
Co-authored-by: Nico Rehwaldt <nico.rehwaldt@camunda.com>
Published as v16.8.2 |
Hmm this job should not have run at all: https://github.com/bpmn-io/dmn-js/actions/runs/11739770879 |
I think it would be reasonable to check for By the way, your release broke |
Thanks for notice! I'll fix that |
This will be fixed via v17.0.1 release. |
Hmm I can't release it because tests fail due to f402e25. I will have a look again after lunch. |
As a temporary fix, I fixed the |
So the test is now broken although its |
BTW the classes are not used for anything apart from the assertions, so we could as well remove them. I will double-check. |
Proposed Changes
Screen.Recording.2024-11-08.at.10.24.04.mov
We've tested the label update but not the direct name change with
modeling.updateProperties
. Now we test for both.Related to bpmn-io/dmn-js-properties-panel#103
Related to camunda/camunda-modeler#4684
Checklist
To ensure you provided everything we need to look at your PR:
@bpmn-io/sr
toolCloses {LINK_TO_ISSUE}
orRelated to {LINK_TO_ISSUE}