Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(openscd):Add multiple Val element into DAI distinguished by sGroup #1221

Merged
merged 11 commits into from
May 17, 2023

Conversation

juancho0202
Copy link
Contributor

Note to reviewer:

My approach is to mod all the custom fields in dai-field-type.ts so that both the render and value functions include an extra parameter called numOfSGs and modify their behavior accordingly when the param is present.

I tested this initially by modifying the test\testfiles\wizards\ied.scd file so that the ScaledValueConfig DA would comply with all the conditions described in #1139 and it seems to be doing the job nicely, but I would prefer if some IEC 61850 expert in the room could step up and help me build a proper file for testing this functionality.

@juancho0202 juancho0202 added Kind: Enhancement New Request Kind: Question Further information is requested labels Mar 31, 2023
@juancho0202 juancho0202 linked an issue Mar 31, 2023 that may be closed by this pull request
@juancho0202 juancho0202 changed the title feat:add multiple Val elements in createDAIWizard feat(openscd):Add multiple Val element into DAI distinguished by sGroup Mar 31, 2023
@sonarcloud
Copy link

sonarcloud bot commented Apr 26, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.6% 0.6% Duplication

@juancho0202 juancho0202 marked this pull request as ready for review May 1, 2023 08:47
@juancho0202 juancho0202 removed the Kind: Question Further information is requested label May 1, 2023
src/wizards/dai.ts Outdated Show resolved Hide resolved
src/wizards/foundation/dai-field-type.ts Show resolved Hide resolved
@juancho0202 juancho0202 marked this pull request as draft May 14, 2023 18:23
@juancho0202 juancho0202 marked this pull request as ready for review May 14, 2023 18:23
src/wizards/dai.ts Show resolved Hide resolved
src/wizards/dai.ts Show resolved Hide resolved
@juancho0202 juancho0202 merged commit a238cc9 into main May 17, 2023
@juancho0202 juancho0202 deleted the 1139-add-multiple-vals-by-sg branch May 17, 2023 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add multiple Val element into DAI distinguished by sGroup
2 participants