Skip to content

Commit

Permalink
fix: PR remarks
Browse files Browse the repository at this point in the history
Signed-off-by: LE SAULNIER Kevin <[email protected]>
  • Loading branch information
LE SAULNIER Kevin committed Sep 9, 2024
1 parent a253d51 commit 125041f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,11 @@ public ResponseEntity<Void> stashNetworkModifications(
}

@PutMapping(value = "/network-modifications", produces = MediaType.APPLICATION_JSON_VALUE, params = "active")
@Operation(summary = "stash or unstash network modifications")
@ApiResponse(responseCode = "200", description = "The network modifications were stashed")
@Operation(summary = "enable or disable network modifications")
@ApiResponse(responseCode = "200", description = "The network modifications were updated successfully")
public ResponseEntity<Void> updateNetworkModificationsActivation(
@Parameter(description = "Network modification UUIDs") @RequestParam("uuids") List<UUID> networkModificationUuids,
@Parameter(description = "Group UUID") @RequestParam("groupUuid") UUID groupUuid,
@Parameter(description = "stash or unstash network modifications") @RequestParam(name = "active") Boolean active) {
@Parameter(description = "enable or disable network modifications") @RequestParam(name = "active") Boolean active) {
networkModificationService.updateNetworkModificationActivation(networkModificationUuids, active);
return ResponseEntity.ok().build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public class ModificationInfos {
private String messageValues;

@Schema(description = "Modification enabled")
@NonNull
@Builder.Default
private Boolean active = true;

// Only for metadata
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public EquipmentAttributeModificationInfos toModificationInfos() {
.date(getDate())
.stashed(getStashed())
.active(getActive())
.active(getActive())
.equipmentId(getEquipmentId())
.equipmentAttributeName(getAttributeName())
.equipmentAttributeValue(getAttributeValue())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ protected ModificationInfos buildModification() {
return LineCreationInfos.builder()
.stashed(false)
.active(true)
.active(true)
.equipmentId("idLine1")
.equipmentName("nameLine1")
.r(100.0)
Expand Down

0 comments on commit 125041f

Please sign in to comment.