-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It would be useful to me if I could provide an optional IED name in findControlSubscription to reduce the query scope.
I note in passing the current query is very broad
scl-lib/tControl/findControlSubscription.ts
Lines 8 to 10 in 5657a71
return Array.from( doc.querySelectorAll(`ExtRef[iedName="${iedName}"]`), ).filter((extRef) => matchSrcAttributes(extRef, control));
We could use a more performant alternative:
Lines 18 to 23 in 5657a71
| return Array.from( | |
| doc.querySelectorAll( | |
| `:root>IED>AccessPoint>Server>LDevice>LN0>Inputs>ExtRef[iedName="${iedName}"], | |
| :root>IED>AccessPoint>Server>LDevice>LN>Inputs>ExtRef[iedName="${iedName}"]`, | |
| ), | |
| ).filter((extRef) => matchDataAttributes(extRef, fcda)); |
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request