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

[SLD] Add label on all nodes if requested #571

Merged
merged 7 commits into from
Dec 12, 2023
Merged

Conversation

flo-dup
Copy link
Contributor

@flo-dup flo-dup commented Dec 11, 2023

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?
Only feeder and bus bar section names are displayed

What is the new behavior (if this is a feature change)?

  • Display labels on EquipmentNodes if SvgParameter::isDisplayEquipmentNodesLabel: switches and internal two-winding transformers then have their name or id displayed
  • Display labels on ConnectivityNodes if SvgParameter::isDisplayConnectivityNodesId (and SvgParameter::isShowInternalNodes)

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

  • Yes
  • No

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>
@flo-dup flo-dup mentioned this pull request Dec 11, 2023
3 tasks
@@ -35,7 +35,7 @@ public abstract class AbstractTestCase {
private static final Pattern SVG_FIX_PATTERN = Pattern.compile(">\\s*(<\\!\\[CDATA\\[.*?]]>)\\s*</", Pattern.DOTALL);

protected boolean debugJsonFiles = false;
protected boolean debugSvgFiles = false;
protected boolean debugSvgFiles = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that debugSvgFiles should be equal to false.

So-Fras and others added 2 commits December 11, 2023 21:51
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
@flo-dup flo-dup requested a review from So-Fras December 12, 2023 11:56
Copy link

sonarcloud bot commented Dec 12, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@So-Fras So-Fras merged commit fcf45db into main Dec 12, 2023
6 checks passed
@So-Fras So-Fras deleted the add_ids_label_all_nodes branch December 12, 2023 12:00
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.

2 participants