-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
We should ensure that generating an new id never causes an id larger than 255 characters.
The maximum length of the id is 255 characters.
I know this doesn't sound like a concern initially but because we concatenate it eventually can be.
This arises from an engineering process between an ICT and the SCT:
- SCT imports multiple ICD files with the same DTT using
insertIed - Relays are in the same family and have identical names but perhaps slightly different data models (or serialised differently).
- OpenSCD uses
isEqualNodeto compare them and creates new nodes.
It can also occur like this:
- SCT export used in ICT tool
- ICT tool serialises IID/SCD file differently (e.g. tabs/spaces or length).
isEqualNodeidentifies the types as being different.- Each trip between the SCT and ICT results in new data type templates being created.
The problem to resolve fundamentally is doing a more semantic comparison (and probably rolling the incomplete compare functionality into its own library). However a reasonable interim solution would be to ensure this ID generation was stable up to a large ceiling for each IED (I would use 10,000 not 2000 next time!).
Also for information, see danyill/oscd-import-templates#3
Metadata
Metadata
Assignees
Labels
No labels