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

Sequence diagram updates #273

Merged
merged 36 commits into from Mar 9, 2020
Merged

Sequence diagram updates #273

merged 36 commits into from Mar 9, 2020

Conversation

amolenaar
Copy link
Member

@amolenaar amolenaar commented Feb 24, 2020

PR Type

What kind of change does this PR introduce?

  • Feature

What is the current behavior?

Issue Number: #143

What is the new behavior?

  • An Execution Specification (ExecSpec) can be added to a Diagram
  • ExecSpec can be connected to a Lifeline
  • Messages can attach to an ExecSpec
  • ExecSpecs can be attached to an ExecSpec
  • Icon for tool box
  • Saving and loading
  • OccurrenceSpecifications should be ordered on the Lifeline [1]

Churn:

  • Rename the IConnect interface to Connector.

NB. detach ExecSpec with Messages or other ExecSpecs attached!

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

[1] If Gaphor orders the OccurrenceSpecifications in accordance to the diagram, one can actually do something with such a diagram, e.g. generate a test script that validates the messages with the real application.

@amolenaar amolenaar changed the title Interaction updates WIP: Sequence diagram updates Feb 24, 2020
@amolenaar amolenaar added this to the 1.2.0 milestone Feb 28, 2020
Loading seems flaky still. items do not show on their appropriate place.
Copy link
Member

@danyeaw danyeaw left a comment

Choose a reason for hiding this comment

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

I reviewed this PR at this point. Wow @amolenaar, really nice job with these enhancements!

@amolenaar
Copy link
Member Author

I'm not happy with the current state of the PR. In order to create an Execution Specification, one has ro connect a handle on the ExecSpec item. This will also make the ExecSpec a child item of the Lifeline or ExecSpec. This seems like a bit too much. For one, I find it weird to be able to connect one handle (the other handle is not connectable).

It should just "drop" on the lifeline. However, the current grouping code does not align child elements in a particular way.

There's still some work to do.

@amolenaar
Copy link
Member Author

I'll keep it as is for now: a handle on the exec spec should connect to the lifeline.
The grouping protocol is not suited to handle constraints, so that would involve a fair amount of work.

`Lifeline.coveredBy`
@amolenaar amolenaar changed the title WIP: Sequence diagram updates Sequence diagram updates Mar 8, 2020
@amolenaar amolenaar merged commit 3603850 into master Mar 9, 2020
@amolenaar amolenaar deleted the interaction-updates branch March 10, 2020 10:44
@danyeaw danyeaw added the feature A new feature label Mar 14, 2020
@amolenaar amolenaar mentioned this pull request Mar 17, 2020
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants