Skip to content

Change checkNetworkExistence endpoint's body to include network load status - #1082

Merged
basseche merged 5 commits into
mainfrom
change_updateNetwork_messages
Sep 8, 2026
Merged

Change checkNetworkExistence endpoint's body to include network load status#1082
basseche merged 5 commits into
mainfrom
change_updateNetwork_messages

Conversation

@basseche

@basseche basseche commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

PR Summary

In order to differentiate, when network does not exist in store, between loaded and unloaded network
we change the endpoint checkNetworkExistence., to add the information on root network load status.

Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
@basseche basseche self-assigned this Sep 4, 2026
@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: e7b298fe-4ea0-4191-9c3c-f4acb76a6f82


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>

public RootNetworkLoadStatus getRootNetworkLoadStatus(UUID networkUuid) {
Optional<RootNetworkEntity> rootNetworkEntity = getRootNetwork(networkUuid);
return rootNetworkEntity.map(RootNetworkEntity::getLoadStatus).orElse(null);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why Optional here (else null) ? (the default value is LOADED)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

but if networkEntity does not exist are you sure we should return Loaded ?

Comment thread src/main/java/org/gridsuite/study/server/dto/RootNetworkExistence.java Outdated
Comment thread src/main/java/org/gridsuite/study/server/controller/StudyController.java Outdated
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
@@ -0,0 +1,4 @@
package org.gridsuite.study.server.dto;

@ghazwarhili ghazwarhili Sep 8, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

author and licence

Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>

Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
@sonarqubecloud

sonarqubecloud Bot commented Sep 8, 2026

Copy link
Copy Markdown

@basseche
basseche merged commit 348be2c into main Sep 8, 2026
4 checks passed
@basseche
basseche deleted the change_updateNetwork_messages branch September 8, 2026 13:15
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