Skip to content

Conversation

ghazwarhili
Copy link
Contributor

No description provided.

@anistouri
Copy link
Contributor

Why not have an endpoint for each calculation, passing it the type (limit-types, branch-sides...) and having it return a list of strings? This would merge the methods in the service layer

@Mathieu-Deharbe Mathieu-Deharbe self-requested a review April 18, 2024 08:46
Copy link
Contributor

@Mathieu-Deharbe Mathieu-Deharbe left a comment

Choose a reason for hiding this comment

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

Can't compile : missing
import java.util.ArrayList;
in SecurityAnalysisService.java

@ghazwarhili
Copy link
Contributor Author

@Mathieu-Deharbe
Obviously it is caused by a resolving conflicts issues

@ghazwarhili ghazwarhili requested a review from anistouri April 19, 2024 07:49
Comment on lines +425 to +437
// get computing status
mockMvc.perform(get("/v1/studies/{studyUuid}/nodes/{nodeUuid}/computation/result/enum-values?computingType={computingType}&enumName={enumName}",
studyNameUserIdUuid, modificationNode1Uuid, LOAD_FLOW, "computation-status"))
.andExpectAll(status().isOk(),
content().string(COMPUTING_STATUS_JSON));

assertTrue(TestUtils.getRequestsDone(1, server).stream().anyMatch(r -> r.matches("/v1/results/" + LOADFLOW_RESULT_UUID + "/computation-status")));

mockMvc.perform(get("/v1/studies/{studyUuid}/nodes/{nodeUuid}/computation/result/enum-values?computingType={computingType}&enumName={enumName}",
studyNameUserIdUuid, modificationNode1Uuid, LOAD_FLOW, "computation")).andReturn();

assertTrue(TestUtils.getRequestsDone(1, server).stream().anyMatch(r -> r.matches("/v1/results/" + LOADFLOW_RESULT_UUID + "/computation")));

Copy link
Contributor

Choose a reason for hiding this comment

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

These tests are not about limit violations. They shouldn't be in a testGetLimitViolations function.

Copy link

@ghazwarhili ghazwarhili merged commit 6dd82ad into main Apr 26, 2024
@ghazwarhili ghazwarhili deleted the handle-and-get-dynamically-enum-filter branch April 26, 2024 15:49
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