powsybl-core
powsybl-core copied to clipboard
CGMES export: refactor profile writers to use context
Signed-off-by: Luma [email protected]
Please check if the PR fulfills these requirements (please use '[x]'
to check the checkboxes, or submit the PR and then click the checkboxes)
- [X] The commit message follows our guidelines
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...) code refactoring
What is the current behavior? (You can also link to an open issue here) The classes that write the profiles have static methods with too many parameters.
What is the new behavior (if this is a feature change)? Refactor writers of CGMES instance files to remove Sonar code smells and issues.
Does this PR introduce a breaking change or deprecate an API? If yes, check the following:
- [X] The Breaking Change or Deprecated label has been added
- [ ] The migration guide has been updated in the github wiki (What changes might users need to make in their application due to this PR?)
Other information:
A thorough review is required after the recent changes in export
About this refactoring: not sure this is the best moment to work on it as the export will probably move a bit with the merging issues...
About this refactoring: not sure this is the best moment to work on it as the export will probably move a bit with the merging issues...
I will try to keep the branch updated with main.
Can I close this old PR as no agreement has been found on that subject?
Can I close this old PR as no agreement has been found on that subject?
Sure. We can reopen the task for cleaning-up export modules when the changes in this feature are less frequent.
To be done in a future release.