-   Notifications  
You must be signed in to change notification settings  - Fork 16
 
Closed
Labels
enhancementNew feature or requestNew feature or requestmedium priorityMedium priority issueMedium priority issue
Description
Yeah - I was trying to establish a consistent pattern across SoftwareSystem, Container, Component and DeploymentNode. A couple of alternative approaches:
- In 
Model, when aSoftwareSystemorDeploymentNodeis added then itModelcould explicitly add all the children. This would be made easier if we added achildrenproperty toModelItemwhich by default returned an empty list but could be overridden by subtypes (e.g.SoftwareSystemwould return its containers, etc.). - In 
SoftwareSystem, etc. we overrideset_model(fromModelRefMixin) to also set the model in its containers, etc. 
I'm leaning toward the first approach (including the generic children) as it feels less fragile.
Originally posted by @yt-ms in #41 (comment)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestmedium priorityMedium priority issueMedium priority issue