-
Notifications
You must be signed in to change notification settings - Fork 64
[1819] Allow multiplicityExpression after redefinitionExpression subs… #1829
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
base: main
Are you sure you want to change the base?
Conversation
1a1edf8 to
35c54a1
Compare
| .verify(Duration.ofSeconds(10)); | ||
| } | ||
|
|
||
| @DisplayName("GIVEN a diagram with a part, WHEN we direct edit with a part with multiplicity operation, THEN the part is correctly set") |
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 agreed that this was not part of the issue.
Add a multiplicity range at the end after a value with a unit is not allowed by the SysMLv2 specification, so I don't think it is a good idea to authorize such edit.
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.
I actually tested that the grammar was not allow allowing to set a multiplicity after an operation see line 618, it will send an error message to the frontend.
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.
I'm not authorizing it, actually I added the DiagramDirectEditErrorListener to capture the fact that it was not allowed.
See line 618 where I test that using a multiplicity range after a value unit will send an error message since the parser is not allowing this case.
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.
Ok I see it now, thank you.
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.
So could you please edit the @DisplayName of this test, because here you test that it is not possible to edit the multiplicity after the feature value, and that is not what is it written in the @DisplayName
doc/content/modules/user-manual/pages/release-notes/2026.1.0.adoc
Outdated
Show resolved
Hide resolved
...on-services/src/main/java/org/eclipse/syson/services/api/DiagramDirectEditErrorListener.java
Outdated
Show resolved
Hide resolved
doc/content/modules/user-manual/pages/release-notes/2026.1.0.adoc
Outdated
Show resolved
Hide resolved
.../java/org/eclipse/syson/application/controllers/diagrams/general/view/GVDirectEditTests.java
Outdated
Show resolved
Hide resolved
.../java/org/eclipse/syson/application/controllers/diagrams/general/view/GVDirectEditTests.java
Outdated
Show resolved
Hide resolved
.../java/org/eclipse/syson/application/controllers/diagrams/general/view/GVDirectEditTests.java
Outdated
Show resolved
Hide resolved
53edfa7 to
d7c872f
Compare
…ettingExpression and typingExpression Bug: #1819 Signed-off-by: Michaël Charfadi <michael.charfadi@obeosoft.com>
d7c872f to
ace9b62
Compare
| When a `PartUsage` is selected, the new actor created (i.e. a `PartUsage`) will subset the selected `PartUsage`. | ||
| - In diagrams, when using _direct edit_ tool, you can now set a _multiplicity range part_ [n..n] after or before a _typing part_, _subsetting part_ or _redefinition part_. | ||
| Before, you could only do `part p2[4] :> p1`, `part p6[1] :>> p1` or `part p8[1] : DefA` | ||
| Now you can also do : `part p3 :> p1[4]`, `part p7 :>> p1[1]` or `part p9 : DefA[1]` |
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.
- Please use the same examples as on the "Before" line, it will help to understand.
- no space before a ':'
| .verify(Duration.ofSeconds(10)); | ||
| } | ||
|
|
||
| @DisplayName("GIVEN a diagram with a part, WHEN we direct edit with a part with multiplicity operation, THEN the part is correctly set") |
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.
Ok I see it now, thank you.
| .verify(Duration.ofSeconds(10)); | ||
| } | ||
|
|
||
| @DisplayName("GIVEN a diagram with a part, WHEN we direct edit with a part with multiplicity operation, THEN the part is correctly set") |
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.
So could you please edit the @DisplayName of this test, because here you test that it is not possible to edit the multiplicity after the feature value, and that is not what is it written in the @DisplayName
…ettingExpression and typingExpression
Bug: #1819
PLEASE READ ALL ITEMS AND CHECK ONLY RELEVANT CHECKBOXES BELOW
Auto review
Project management
priority:andpr:labels been added to the pull request? (In case of doubt, start with the labelspriority: lowandpr: to review later)area:,type:)Changelog and release notes
CHANGELOG.adoc+doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adocbeen updated to reference the relevant issues?CHANGELOG.adoc?CHANGELOG.adoc?doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?Key highlightssection indoc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?Documentation
Tests