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

Save network area diagram metadata in JSON format #646

Merged
merged 9 commits into from
Oct 15, 2024
Merged

Conversation

massimo-ferraro
Copy link
Contributor

@massimo-ferraro massimo-ferraro commented Sep 20, 2024

Please check if the PR fulfills these requirements

  • 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)

Does this PR already have an issue describing the problem?
no

What kind of change does this PR introduce?
feature

What is the current behavior?
Network area diagram metadata is serialized in XML format inside the SVG

What is the new behavior (if this is a feature change)?
Network area diagram metadata is serialized in JSON format

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)
The draw methods in the com.powsybl.nad.NetworkAreaDiagram class that take as input a writer parameter, for the SVG, now take as input also a second writer parameter, for the JSON metadata.
Examples can be found in com.powsybl.nad.NetworkAreaDiagramTest test class.

Signed-off-by: massimo.ferraro <massimo.ferraro@soft.it>
Signed-off-by: massimo.ferraro <massimo.ferraro@soft.it>
Signed-off-by: massimo.ferraro <massimo.ferraro@soft.it>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Copy link

@So-Fras So-Fras merged commit 74a8804 into main Oct 15, 2024
7 checks passed
@So-Fras So-Fras deleted the nad_json_metadata branch October 15, 2024 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants