openscd / open-scd

A substation configuration description editor for projects using SCL IEC 61850-6 Edition 2 or greater
https://openscd.github.io
Apache License 2.0
101 stars 31 forks source link

Preserve SCL validity #1071

Open ca-d opened 1 year ago

ca-d commented 1 year ago

Is your feature request related to a problem? Please describe. Sometimes a user (i.e. a plugin) requests an editing action which we can tell would make an otherwise valid SCL file invalid, e.g. regarding schema validity, functional validity or the like.[^ex]

Describe the solution you'd like I want to be given the following four options for what to do about non-validity-preserving editor actions:

Requirements

Suggestions for a specific user interaction I envision a menu plugin that opens a settings dialog on being clicked and otherwise automatically opens dialogues whenever querying the user for manual input.

[^ex]: One example would be renaming an IED to the name of another IED in the same file resulting in an otherwise schema-valid SCL file becoming schema-invalid. [^fix]: Append a sufficiently large number to the IED name in the example above.

ca-d commented 1 year ago

@danyill Does this reflect the status of our discussion as you remember it?

danyill commented 1 year ago

Yes, I found our discussion constructive and what I learnt which led to the closing of #1033 is: