Skip to content

Fix removing ieds resulting in duplicate entries - #2

Closed
stee-re wants to merge 10 commits into
OpenPowerShift:mainfrom
stee-re:fix_removing-ieds-resulting-in-duplicate-entries
Closed

stee-re wants to merge 10 commits into
OpenPowerShift:mainfrom
stee-re:fix_removing-ieds-resulting-in-duplicate-entries

Conversation

@stee-re

@stee-re stee-re commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Modernizes the plugin and improves bulk IED removal, addressing duplicate LNode entries and adding explicit choices for affected SCL sections.

Removal behavior

  • Updates to  @openscd/scl-lib  v2, with regression coverage for duplicate LNodes when removing multiple IEDs.
  • Preserves associated LNodes by default, resetting  iedName  to  None  and removing matching duplicates; adds an option to delete associated LNodes instead.
  • Detects SubNetworks left without ConnectedAPs and offers explicit deletion of those networks and, where applicable, the empty Communication section.
  • Retains affected sections by default to avoid unintended metadata loss, while warning about the resulting schema violations.
  • Adds read-only SCL previews and a confirmation summary for communication impacts.
  • Groups each removal operation into a single undo entry.

Plugin and UI

  • Migrates to  @openscd/oscd-api  EditV2 events and reactive  docVersion  updates.
  • Replaces legacy UI dependencies with scoped  @omicronenergy/oscd-ui  components.
  • Improves selection handling, dialog layout and removal-option visibility.
  • Adds confirmation dialog where extra options were offered in case options were missed.

Development

  • Migrates build, lint, test, and development commands to  @omicronenergy/oscd-tooling .
  • Updates dependencies and CI to Node.js 24, adds release-please configuration, and refreshes documentation.
  • Moves the demo to oscd-shell and extended the sample SCL documents.
  • Adds unit tests covering removal, LNode handling, communication impacts, previews, and undo/redo.

AI Agents were used during the development of this migration & fix

stee-re and others added 10 commits April 24, 2026 11:40
Co-authored-by: Copilot <copilot@github.com>
Apply edits from detail.edit and bind each removal test to its own
SCL fixture. Add coverage for ConnectedAP removal and LNode unbinding,
and declare the XML editor test dependency.
Replace editCount with the reactive docVersion API property.
Verify IED list refreshes after edits and undo using opaque versions.

Correct the README's plugin name, menu classification, and API
requirements while preserving upstream structure and references.
Preserve unique LNodes with iedName="None" by default, with an
unchecked option to delete them alongside the selected IEDs.

Disable and reset the option when no selected IED has public LNode
bindings, and preserve IED selection when changing the option.

Document the behavior and cover preservation, deletion, undo,
existing unbound LNodes, and successive removals across refreshes.
Offer optional removal of associated LNodes, emptied SubNetworks and
Communication, preserving LNodes and parent-section metadata by default.

Add progressive removal options, read-only SCL previews and a
confirmation
dialog summarizing deletions, retained empty sections and schema
warnings.
Keep selections when returning from review and close dialogs after
removal.

Group each removal operation into a single undo entry. Expand regression
coverage, demo scenarios and usage documentation.
@stee-re

stee-re commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

Closing as #3 contains this commits (and much more)

@stee-re stee-re closed this Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant