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

Fix removing the "last" variant of a network for tap changers #1979

Merged
merged 5 commits into from
Feb 18, 2022

Conversation

phiedw
Copy link
Contributor

@phiedw phiedw commented Feb 17, 2022

Signed-off-by: EDWARDS Philippe edwardsphi@gm0winl197.bureau.si.interne

Please check if the PR fulfills these requirements (please use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem ? If so, link to this issue using '#XXX' and skip the rest
No

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix

What is the current behavior? (You can also link to an open issue here)
When deleting the network variant with the highest index, the tap changers will lose the wrong number of values for the tap position attribute.

What is the new behavior (if this is a feature change)?
It now loses the expected number of values.

Other information:

(if any of the questions/checkboxes don't apply, please delete them entirely)

Signed-off-by: EDWARDS Philippe <edwardsphi@gm0winl197.bureau.si.interne>
@phiedw phiedw requested a review from geofjamg February 17, 2022 18:33
Copy link
Member

@geofjamg geofjamg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect same bug in ShuntCompensatorImpl

@phiedw
Copy link
Contributor Author

phiedw commented Feb 17, 2022

indeed, I'll look for that line of code in all the files to make sure there are no other bugs

EDWARDS Philippe and others added 3 commits February 17, 2022 19:51
Signed-off-by: EDWARDS Philippe <edwardsphi@gm0winl197.bureau.si.interne>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@gmail.com>
@geofjamg
Copy link
Member

indeed, I'll look for that line of code in all the files to make sure there are no other bugs

I would say it is ok now. I searched in the delayed validation PR for other reduceVariantArraySize changes and there is not.

Copy link
Member

@annetill annetill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @phiedw for this fix.

@sonarqubecloud
Copy link

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 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@annetill annetill merged commit f3f0929 into main Feb 18, 2022
@annetill annetill deleted the fix_tap_changer_variant_removal branch February 18, 2022 11:36
miovd pushed a commit that referenced this pull request Feb 23, 2022
* Fix removing the "last" variant of a network for tap changers
* fix same issue with ShuntCompensatorImpl sectionCount

Signed-off-by: EDWARDS Philippe <edwardsphi@gm0winl197.bureau.si.interne>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@gmail.com>
colinepiloquet pushed a commit that referenced this pull request Mar 8, 2022
* Fix removing the "last" variant of a network for tap changers
* fix same issue with ShuntCompensatorImpl sectionCount

Signed-off-by: EDWARDS Philippe <edwardsphi@gm0winl197.bureau.si.interne>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants