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 security analysis endpoints to add rootNetworkUuid in path #650

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

klesaulnier
Copy link
Contributor

No description provided.

LE SAULNIER Kevin added 3 commits December 12, 2024 13:49
Signed-off-by: LE SAULNIER Kevin <[email protected]>
(cherry picked from commit ac4bdf4)
…t network

Signed-off-by: LE SAULNIER Kevin <[email protected]>
(cherry picked from commit 6b066fd)
@klesaulnier klesaulnier changed the title Security analysis endpoint migrated to root-nerworks usage Migrate security analysis endpoints to add rootNetworkUuid in path Dec 12, 2024
@SlimaneAmar SlimaneAmar self-requested a review January 8, 2025 11:55
@@ -0,0 +1,21 @@
package org.gridsuite.study.server.utils;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we not use TestUtils ?

@SlimaneAmar
Copy link
Contributor

Throw an exception for this method is ok

public UUID getNetworkUuid(UUID rootNetworkUuid) {
        return getRootNetwork(rootNetworkUuid).map(RootNetworkEntity::getNetworkUuid).orElseThrow(() -> new StudyException(NETWORK_NOT_FOUND));
    }

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