-
Notifications
You must be signed in to change notification settings - Fork 0
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
Check null values for droop and P0 (2e patch) #523
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I quote Thibault :
the switch off and the k and P0 fields filled means that an extension is created (with AC emulation disabled)
This is not the case in this PR (in this situation you don't create the extension)
DONE |
src/main/java/org/gridsuite/modification/server/modifications/VscModification.java
Outdated
Show resolved
Hide resolved
if (Boolean.FALSE.equals(modificationInfos.getAngleDroopActivePowerControl()) && !isPresentDroop && !isPresentP0) { | ||
return; | ||
} | ||
// at least one field is provided but not for others => NOT OK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// at least one field is provided but not for others => NOT OK | |
// at least one field is provided but not for the others => NOT OK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE!
Corrected also in modification
} | ||
// otherwise, i.e. all fields are not provided => OK extension will not be created |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// otherwise, i.e. all fields are not provided => OK extension will not be created | |
// otherwise, i.e. none of the fields is provided => OK extension will not be created |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE!
Corrected also in modification
assertThat(getNetwork().getHvdcLine("vsc1")).isNotNull(); | ||
HvdcLine hvdcLine = getNetwork().getHvdcLine("vsc1"); | ||
assertThat(hvdcLine).isNotNull(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't you checking the same thing twice ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE!
Removed line 330
Quality Gate passedIssues Measures |
A PR completed for the previous PR: #512
When extension is not yet created: