Skip to content

Move Relationship and Comment back to the UML model #3555

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

Merged
merged 3 commits into from
Nov 2, 2024
Merged

Conversation

amolenaar
Copy link
Member

@amolenaar amolenaar commented Nov 1, 2024

Move Relationship and Comment back to the UML model

Saved models have been updated by means of search/replace, no migration has been made.

Comment items have been moved to the UML model, as well as the "general tools" section.

PR Type

What kind of change does this PR introduce?

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

Issue Number: #3540

Other information

This PR puts the model in a bit of a skew: Element is still in core, but some its properties are placeholders for relations defined in the UML model.

This used to be (partly) solved by having Relationship and Comment as part of the core model. The only odd one out has always been appliedStereotype.

One other thing that's been bothering me is that Element is a model type that can be fully generated. It's still a hand written type, since Diagram depends on it.

If we proceed, it will not be possible to link comments to diagrams. Not sure if that's a problem, though. We also loose the ability to apply stereotypes to diagrams (#3336), which would be a pity.

@github-actions github-actions bot added the python Pull requests that update Python code label Nov 1, 2024
@amolenaar amolenaar requested a review from danyeaw November 1, 2024 22:11
@amolenaar amolenaar changed the title Empty core model Move Relationship and Comment back to the UML model Nov 1, 2024
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.

Hi @amolenaar, these changes look great, thanks!

@danyeaw danyeaw added chore Maintenance related PR and removed python Pull requests that update Python code labels Nov 2, 2024
@danyeaw danyeaw merged commit 1e13088 into main Nov 2, 2024
22 checks passed
@danyeaw danyeaw deleted the empty-core-model branch November 2, 2024 18:52
@amolenaar
Copy link
Member Author

Now we have to figure out how to deal with the Element class.

I have an idea: create generic functions (singledispatch) for the features we need for the model browser. Then we do no longer need Element in the core model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance related PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants