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

Migrate network-map and geo-data endpoints to add rootNetworkUuid in path #652

Open
wants to merge 5 commits into
base: root-network-computation-endpoints
Choose a base branch
from

Conversation

klesaulnier
Copy link
Contributor

No description provided.

@@ -619,6 +619,9 @@ private StudyCreationRequestEntity insertStudyCreationRequest(String userId, UUI
public byte[] getVoltageLevelSvg(String voltageLevelId, DiagramParameters diagramParameters,
UUID nodeUuid, UUID rootNetworkUuid) {
UUID networkUuid = rootNetworkService.getNetworkUuid(rootNetworkUuid);
if (networkUuid == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove it

@@ -630,6 +633,9 @@ public byte[] getVoltageLevelSvg(String voltageLevelId, DiagramParameters diagra
public String getVoltageLevelSvgAndMetadata(String voltageLevelId, DiagramParameters diagramParameters,
UUID nodeUuid, UUID rootNetworkUuid) {
UUID networkUuid = rootNetworkService.getNetworkUuid(rootNetworkUuid);
if (networkUuid == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove it

@@ -1057,6 +1063,9 @@ public List<LimitViolationInfos> getLimitViolations(@NonNull UUID nodeUuid, UUID
public byte[] getSubstationSvg(String substationId, DiagramParameters diagramParameters,
String substationLayout, UUID nodeUuid, UUID rootNetworkUuid) {
UUID networkUuid = rootNetworkService.getNetworkUuid(rootNetworkUuid);
if (networkUuid == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove it

@@ -1068,6 +1077,9 @@ public byte[] getSubstationSvg(String substationId, DiagramParameters diagramPar
public String getSubstationSvgAndMetadata(String substationId, DiagramParameters diagramParameters,
String substationLayout, UUID nodeUuid, UUID rootNetworkUuid) {
UUID networkUuid = rootNetworkService.getNetworkUuid(rootNetworkUuid);
if (networkUuid == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove it

@@ -1078,6 +1090,9 @@ public String getSubstationSvgAndMetadata(String substationId, DiagramParameters

public String getNetworkAreaDiagram(UUID nodeUuid, UUID rootNetworkUuid, List<String> voltageLevelsIds, int depth, boolean withGeoData) {
UUID networkUuid = rootNetworkService.getNetworkUuid(rootNetworkUuid);
if (networkUuid == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove it

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.

2 participants