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 return impacts when active power control modification #378

Merged
merged 9 commits into from
Dec 1, 2023

Conversation

achour94
Copy link
Contributor

No description provided.

@Meklo Meklo self-requested a review November 23, 2023 09:26
if (participateInfo != null) {
activePowerControlAdder
.withParticipate(participateInfo.getValue());
reports.add(ModificationUtils.getInstance().buildModificationReport(false,
Copy link
Contributor

Choose a reason for hiding this comment

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

won't this possibly make a report with the same old and new value

Comment on lines 796 to 805
if (droopInfo != null) {
activePowerControlAdder
.withDroop(droop);
reports.add(ModificationUtils.getInstance().buildModificationReport(Double.NaN,
droop,
"Droop"));
} else {
activePowerControlAdder
.withDroop(Double.NaN);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't this slightly better ?

activePowerControlAdder.withDroop(droop);
if (droopInfo != null) {            
    reports.add(ModificationUtils.getInstance().buildModificationReport(Double.NaN, droop, "Droop"));
}

Copy link

sonarqubecloud bot commented Dec 1, 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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@achour94 achour94 merged commit afda75b into main Dec 1, 2023
4 checks passed
@achour94 achour94 deleted the fix_battery_modification_update branch December 1, 2023 16:22
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.

4 participants