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
102 stars 38 forks source link

Remove IED button #616

Closed Sander3003 closed 2 years ago

Sander3003 commented 2 years ago

As an OpenSCD engineer user I want to a button to remove IED's from a SCL file So I can remove IED's that are not needed any longer

Accpetance criteria: The IED and related information should be removed Including the related reporting blocks

Background: When editing a substation, it could be usefull to remove a IED of an exsiting configuration.

randy993 commented 2 years ago

Add trashbin icon to: image

And add Remove button to: image

Upon deletion, delete the <IED> element and the references to the IED element.

What about <tControlWithIEDName>?

Maybe we should warn the user that all references to the IED will be deleted as well? For example GOOSE/SMV subscriptions etc?

Sander3003 commented 2 years ago

To be added: Dialog with things that are being removed (elements)

The delete function can be added to the *** menu

The rename function can be used to check if the remove function is complete: https://github.com/openscd/open-scd/issues/453

Sander3003 commented 2 years ago

The following reference to the IED Name are removed. The attribute (between []) of the following elements:

The Text Content of the following elements:

TODO: Don't forget to remove the data template section ( @JakobVogelsang will make a suggestion for this).