forked from netcreateorg/netcreate-2018
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
bugSomething isn't workingSomething isn't workingdesignDesign epicDesign epicp4 must haveFeature definitely needs to be completedFeature definitely needs to be completedtemplate
Description
To reproduce:
- Generate a network and leave the "Comments" field visible
- Stop net.create.
- Open the template file externally (e.g., in studio code)
- Add a select type property such as ...
[nodeDefs.connotation]
type = "select"
displayLabel = "Connotation"
exportLabel = "Connotation"
help = "Is this positive, negative, or neutral?"
includeInGraphTooltip = true
hidden = false
[[nodeDefs.connotation.options]]
color = "#eeeeee"
label = ""
replacement = ""
delete = false
[[nodeDefs.connotation.options]]
color = "#eeeeee"
label = "Positive"
replacement = ""
delete = false
[[nodeDefs.connotation.options]]
color = "#eeeeee"
label = "Negative"
replacement = ""
delete = false
- Run net-create with the revised template.
- Nodes have the new connotation attribute as well as comments and all works as expected.
- Open template editor and add a node type.
- Network looks fine, and new node type is added to the template file on the hard drive.
- Change the visibility on the comment field using the template editor.
- Screen reloads, and connotations is also gone.
- Check the saved template file, and it looks OK but the connotation attribute has been deleted.
We realize that short-term we need to add / edit these node attributes by hand because it is not worth updating the template editor since the plan is, I believe, to replace it. If it is easy to have this not clobber the hand-added fields, that'd be ideal. If that's a major task, we'll just warn the team not to use the template editor on anything that was hand edited.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdesignDesign epicDesign epicp4 must haveFeature definitely needs to be completedFeature definitely needs to be completedtemplate