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

Separate computation logs from modification logs #465

Merged
merged 21 commits into from
Nov 23, 2023

Conversation

dbraquart
Copy link
Contributor

No description provided.

dbraquart and others added 15 commits November 3, 2023 13:51
Signed-off-by: David BRAQUART <[email protected]>
Signed-off-by: David BRAQUART <[email protected]>
Signed-off-by: David BRAQUART <[email protected]>
Signed-off-by: David BRAQUART <[email protected]>
Signed-off-by: David BRAQUART <[email protected]>
…odification_logs' into separate_computation_logs_from_modification_logs
Signed-off-by: David BRAQUART <[email protected]>
Signed-off-by: David BRAQUART <[email protected]>
@dbraquart dbraquart changed the title WIP Separate computation logs from modification logs Separate computation logs from modification logs Nov 14, 2023
@EstherDarkish EstherDarkish self-requested a review November 20, 2023 16:22
@@ -88,7 +88,8 @@ public UUID runLoadFlow(UUID studyUuid, UUID nodeUuid, LoadFlowParametersInfos l
.fromPath(DELIMITER + LOADFLOW_API_VERSION + "/networks/{networkUuid}/run-and-save")
.queryParam(QUERY_PARAM_RECEIVER, receiver)
.queryParam("reportUuid", reportUuid.toString())
.queryParam("reporterId", nodeUuid.toString());
.queryParam("reporterId", nodeUuid.toString())
.queryParam("reportType", StudyService.ReportType.LOADFLOW.toString());
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a constant for query params ?

LOAD_FLOW, SECURITY_ANALYSIS, SENSITIVITY_ANALYSIS
}

public enum TaskKeyFilterMatchingType {
Copy link
Contributor

Choose a reason for hiding this comment

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

ReportNameMatchingType ?

}

@Transactional(readOnly = true)
public List<ReporterModel> getParentNodesReport(UUID nodeUuid, boolean nodeOnlyReport, Set<String> severityLevels) {
public List<ReporterModel> getParentNodesReport(UUID nodeUuid, boolean nodeOnlyReport, ReportType reportType, Set<String> severityLevels) {
String taskKeyFilter;
Copy link
Contributor

Choose a reason for hiding this comment

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

Too complex !
Add a method getFiltersParamaters ?

@@ -54,6 +54,7 @@ private StudyConstants() {
public static final String QUERY_PARAM_REPORT_SEVERITY_LEVEL = "severityLevels";
public static final String QUERY_PARAM_REPORT_WITH_ELEMENTS = "withElements";
public static final String QUERY_PARAM_REPORT_TASKKEY_FILTER = "taskKeyFilter";
public static final String QUERY_PARAM_REPORT_TASKKEY_FILTER_MATCHING_TYPE = "taskKeyFilterMatchingType";
Copy link
Contributor

Choose a reason for hiding this comment

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

Same remark as report server
Rename the notion REPORT_TASKKEY_FILTER by REPORT_NAME_FILTER

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

94.3% 94.3% Coverage
0.0% 0.0% Duplication

@dbraquart dbraquart merged commit 3e74973 into main Nov 23, 2023
4 checks passed
@dbraquart dbraquart deleted the separate_computation_logs_from_modification_logs branch November 23, 2023 11:43
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