-
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
remove previous load-flow report when we start a new one #73
remove previous load-flow report when we start a new one #73
Conversation
@@ -51,6 +51,7 @@ public ResponseEntity<UUID> run(@Parameter(description = "Network UUID") @PathVa | |||
@Parameter(description = "Result receiver") @RequestParam(name = "receiver", required = false) String receiver, | |||
@Parameter(description = "reportUuid") @RequestParam(name = "reportUuid", required = false) UUID reportId, | |||
@Parameter(description = "reporterId") @RequestParam(name = "reporterId", required = false) String reportName, | |||
@Parameter(description = "The type of report for short-circuit") @RequestParam(name = "reportType") String reportType, |
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.
short-circuit ?
Objects.requireNonNull(reportUuid); | ||
|
||
var path = UriComponentsBuilder.fromPath("{reportUuid}") | ||
.queryParam(QUERY_PARAM_REPORT_TASKKEY_TYPE_FILTER, taskKeyTypeFilter) |
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.
Rename QUERY_PARAM_REPORT_TASKKEY_TYPE_FILTER by QUERY_PARAM_REPORT_TYPE_FILTER
QUERY_PARAM_REPORT_TYPE_FILTER = "reportType"
@@ -51,6 +51,7 @@ public ResponseEntity<UUID> run(@Parameter(description = "Network UUID") @PathVa | |||
@Parameter(description = "Result receiver") @RequestParam(name = "receiver", required = false) String receiver, | |||
@Parameter(description = "reportUuid") @RequestParam(name = "reportUuid", required = false) UUID reportId, | |||
@Parameter(description = "reporterId") @RequestParam(name = "reporterId", required = false) String reportName, | |||
@Parameter(description = "The type of report for short-circuit") @RequestParam(name = "reportType") String reportType, |
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.
Optional ?
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.
test OK code OK
…logs # Conflicts: # src/main/java/org/gridsuite/loadflow/server/service/LoadFlowWorkerService.java
Kudos, SonarCloud Quality Gate passed! |
No description provided.