Skip to content

Conversation

@ghazwarhili
Copy link
Contributor

No description provided.

@ghazwarhili ghazwarhili requested a review from EtienneLt October 27, 2025 12:11
Copy link
Contributor

@EtienneLt EtienneLt left a comment

Choose a reason for hiding this comment

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

small things

}

public static String toOperatingStatus(@NonNull final Extendable<?> extendable) {
public static String toOperatingStatus(@NonNull final Extendable<?> extendable, boolean isTerminalsConnected) {
Copy link
Contributor

Choose a reason for hiding this comment

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

you could add a method

public static String toOperatingStatus(@NonNull final Extendable<?> extendable) {
      toOperatingStatus(extendable, false);
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice !
done

.p2(nullIfNan(terminal2.getP()))
.hvdcType(hvdcLine.getConverterStation1().getHvdcType())
.operatingStatus(ExtensionUtils.toOperatingStatus(hvdcLine))
.operatingStatus(ExtensionUtils.toOperatingStatus(hvdcLine, terminal1.isConnected() || terminal2.isConnected()))
Copy link
Contributor

Choose a reason for hiding this comment

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

why is it or and not and ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed and done

.voltageLevelId1(terminal1.getVoltageLevel().getId())
.voltageLevelId2(terminal2.getVoltageLevel().getId())
.operatingStatus(ExtensionUtils.toOperatingStatus(hvdcLine))
.operatingStatus(ExtensionUtils.toOperatingStatus(hvdcLine, terminal1.isConnected() || terminal2.isConnected()))
Copy link
Contributor

Choose a reason for hiding this comment

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

same ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@ghazwarhili ghazwarhili requested a review from EtienneLt October 31, 2025 08:20
@sonarqubecloud
Copy link

Copy link
Contributor

@EtienneLt EtienneLt left a comment

Choose a reason for hiding this comment

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

Test OK code OK

@ghazwarhili ghazwarhili merged commit 73e49c9 into main Oct 31, 2025
4 checks passed
@ghazwarhili ghazwarhili deleted the operating-status-under-condition branch October 31, 2025 12:10
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.

3 participants