-
Notifications
You must be signed in to change notification settings - Fork 13
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
[feature/OPT-1029] to dev #333
Conversation
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.
@smaneroiriusrisk nice work! Great idea how uniting components and trustzone in the same list works!
I wrote a couple of comments I'd like to discuss before approving this PR.
from slp_drawio.slp_drawio.parse.tranformers.parent_calculator_transformer import ParentCalculatorTransformer | ||
|
||
|
||
class TestParentCalculatorTransformer: |
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 class lacks tests to set the parent for:
- Component has a TrustZone as parent
- Trustzone has a Component as a parent
- Trustzone has another TZ as a parent
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 these use cases are out of scope of the MVP, but I have done it anyway. I had to modify the DiagramTrustzone class.
return PARENT_TYPES[element.__class__] | ||
|
||
|
||
class ParentCalculatorTransformer(Transformer): |
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.
Parent calculator should be used at DrawioParser.build_otm bellow the line # TODO Implement and call Transformers here
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'm not sure if this is the right task to do that, but also done anyway
48b24b4
No description provided.