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
Comment line fixes #280
Comment line fixes #280
Conversation
bfa23e3
to
d74aba8
Compare
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.
This looks great 👍 , I just found a couple of imports that could be cleaned up.
from gaphor.diagram.classes import ClassItem, GeneralizationItem | ||
from gaphor.diagram.general import CommentItem, CommentLineItem | ||
from gaphor.diagram.tests.fixtures import connect | ||
from gaphor.services.sanitizerservice import SanitizerService | ||
from gaphor.tests import TestCase |
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 think we can remove the TestCase import here.
from gaphor import UML | ||
from gaphor.diagram.classes.generalization import GeneralizationItem | ||
from gaphor.diagram.classes.klass import ClassItem | ||
from gaphor.diagram.general.comment import CommentItem | ||
from gaphor.diagram.general.commentline import CommentLineItem | ||
from gaphor.diagram.tests.fixtures import allow, connect, disconnect | ||
from gaphor.diagram.usecases.actor import ActorItem | ||
from gaphor.tests import TestCase |
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.
TestCase import can be removed
d74aba8
to
1de4839
Compare
PR Type
What kind of change does this PR introduce?
What is the current behavior?
See #72
Issue Number: N/A
What is the new behavior?
A background service (sanitizer) ensures elements have their comments attached.
Does this PR introduce a breaking change?