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

Make ActivityParameterNode droppable #2890

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

marek-piirikivi
Copy link
Contributor

Makes ActivityParameterNode droppable.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bug fix
  • Feature
  • Chore (refactoring, formatting, local variables, other cleanup)
  • Documentation content changes

What is the current behavior?

Currently activity parameter node items can only be attached on the activity item by adding new nodes from the property menu. However, you can freely delete the items - and sometimes you want to do that to keep the diagram cleaner - you can not add them pack if you have mistakenly done so.

Issue Number: N/A

What is the new behavior?

Activity parameter node items can now additionally attached to the activity items by dropping the activity's parameters from the model browser.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@marek-piirikivi marek-piirikivi self-assigned this Dec 2, 2023
@github-actions github-actions bot added python Pull requests that update Python code documentation labels Dec 2, 2023
Copy link
Member

@amolenaar amolenaar left a comment

Choose a reason for hiding this comment

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

Nice change. It's good to merge.

The placement can be improved a bit, and it could benefit from a few unit tests.

gaphor/UML/actions/drop.py Show resolved Hide resolved
@marek-piirikivi marek-piirikivi marked this pull request as draft December 4, 2023 06:15
@marek-piirikivi
Copy link
Contributor Author

Converted to draft because I'll add tests.

@marek-piirikivi marek-piirikivi marked this pull request as ready for review December 8, 2023 04:59
@marek-piirikivi
Copy link
Contributor Author

@amolenaar It's ready now. I added tests. Please review 🙏

It looks nearly identical to what I did with proxy ports. I believe it is possible to make this behavior generic for all droppable and attachable items. Seems the kind of behavior that we would like every droppable attachable to have (relationship lines included) - but that's just some thoughts for future.

@amolenaar
Copy link
Member

Looks good. Thanks @marek-piirikivi.

I think the build error is something that was fixed on main already, so I'll just merge it.

@amolenaar amolenaar merged commit c39498c into gaphor:main Dec 8, 2023
17 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants