Skip to content

Conversation

@achour94
Copy link
Contributor

PR Summary

This pull request introduces support for a new ReportMode option in the reporting workflow, allowing reports to be either appended to or replaced. The changes involve updating the DTOs, service methods, and relevant tests to handle this new mode, while maintaining backward compatibility by defaulting to the append behavior.

Feature: Report mode support

  • Added a new ReportMode enum (APPEND, REPLACE) in org.gridsuite.modification.server.dto to specify how reports are handled.
  • Updated the ReportInfos DTO to include a reportMode field, a no-argument constructor, and a constructor that defaults reportMode to APPEND.

Service changes

  • Modified the ReportService.sendReport method to accept a ReportMode parameter, determining the endpoint used for report submission (replace for REPLACE, default for APPEND). Overloaded the method to maintain backward compatibility.
  • Updated the NetworkModificationApplicator to pass the reportMode from ReportInfos when sending reports.

@achour94 achour94 self-assigned this Nov 13, 2025
@sonarqubecloud
Copy link

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