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

Unwind uml package #263

Merged
merged 12 commits into from Feb 6, 2020
Merged

Unwind uml package #263

merged 12 commits into from Feb 6, 2020

Conversation

amolenaar
Copy link
Member

@amolenaar amolenaar commented Feb 5, 2020

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Documentation content changes

What is the current behavior?

The imports in the gaphor.UML module are very much entangled.

What is the new behavior?

The imports happen more orderly. There are no cycles (except for elementdispatcher.py).

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

  • The UML Diagram class is now inlined in uml2.py
  • overrides are no longer directly imported in uml2.py
  • Added protocols to resolve cycles (e.g. between Element and ElementFactory)
  • The UML properties are only generic when needed (e.g. associations are abstracted behind a protocol)

@amolenaar amolenaar merged commit 29a9e03 into master Feb 6, 2020
@amolenaar amolenaar deleted the unwind-uml-package branch February 9, 2020 13:01
@amolenaar amolenaar added the chore Maintenance related PR label Feb 14, 2020
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.

None yet

1 participant