-
Notifications
You must be signed in to change notification settings - Fork 0
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
optimisation: group requests to filter server #55
optimisation: group requests to filter server #55
Conversation
...org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisInputBuilderService.java
Outdated
Show resolved
Hide resolved
...org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisInputBuilderService.java
Outdated
Show resolved
Hide resolved
...org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisInputBuilderService.java
Outdated
Show resolved
Hide resolved
...org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisInputBuilderService.java
Outdated
Show resolved
Hide resolved
src/test/java/org/gridsuite/sensitivityanalysis/server/SensitivityAnalysisControllerTest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/sensitivityanalysis/server/service/FilterService.java
Outdated
Show resolved
Hide resolved
...org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisInputBuilderService.java
Outdated
Show resolved
Hide resolved
...org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisInputBuilderService.java
Outdated
Show resolved
Hide resolved
...org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisInputBuilderService.java
Outdated
Show resolved
Hide resolved
...org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisInputBuilderService.java
Outdated
Show resolved
Hide resolved
...org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisInputBuilderService.java
Outdated
Show resolved
Hide resolved
...org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisInputBuilderService.java
Outdated
Show resolved
Hide resolved
...org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisInputBuilderService.java
Outdated
Show resolved
Hide resolved
...org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisInputBuilderService.java
Outdated
Show resolved
Hide resolved
src/test/java/org/gridsuite/sensitivityanalysis/server/service/FilterServiceTest.java
Show resolved
Hide resolved
...org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisInputBuilderService.java
Outdated
Show resolved
Hide resolved
List<String> containerNamesList = filters.stream().map(EquipmentsContainer::getContainerName).toList(); | ||
String containerNames = Arrays.toString(containerNamesList.toArray()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can refactor this part to avoid code duplication since it's commonly used with getIdentifiablesFromContainer
Proposition:
private String getContainerNames(List<EquipmentsContainer> filters) {
List<String> containerNamesList = filters.stream().map(EquipmentsContainer::getContainerName).toList();
return Arrays.toString(containerNamesList.toArray());
}
Then use it here:
.withValue("name", getContainerNames(filters))
src/test/java/org/gridsuite/sensitivityanalysis/server/service/FilterServiceTest.java
Show resolved
Hide resolved
I found a problem during a test and reported it but I didn't reproduce it with Jamal yet. Will check back on it monday with Jamal before any approval. |
Probleme found , i did a fix and added few tests to detect the issue |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Crash fixed. Good for me.
No description provided.