Skip to content

Adding a child node with an invalid usage should throw an error #3020

Description

@WhoBrokeTheBuild

Affiliation
PSFC

Description
When adding a child node with an invalid usage (not structure or subtree), it should throw an error. Currently, it silently changes the usage to structure.

Example

TCL> add node .a /usage=numeric
TCL> dir /full .a

\MYTREE::TOP

  A           
      Status: on,parent is on, usage structure
      compress on put
      Data inserted:                            Owner: uid=0(root)
      There is no data stored for this node

Additional context
Found while reviewing #3015

Metadata

Metadata

Labels

coreRelates to the core libraries and scriptsfeatureIndicates new feature requests or implementations

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions